function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'01/22/2024',y:[33.58,33.71,33.48,33.48]},{ x:'01/23/2024',y:[33.67,33.80,33.65,33.70]},{ x:'01/24/2024',y:[33.58,33.78,33.58,33.70]},{ x:'01/25/2024',y:[34.01,34.10,33.94,34.05]},{ x:'01/26/2024',y:[34.05,34.05,33.67,33.69]},{ x:'01/29/2024',y:[33.47,33.61,33.47,33.55]},{ x:'01/30/2024',y:[33.66,33.86,33.65,33.86]},{ x:'01/31/2024',y:[33.37,33.48,33.34,33.38]},{ x:'02/01/2024',y:[33.39,33.46,33.30,33.30]},{ x:'02/02/2024',y:[33.35,33.56,33.35,33.37]},{ x:'02/05/2024',y:[33.48,33.51,33.30,33.46]},{ x:'02/15/2024',y:[33.88,35.35,33.87,35.30]},{ x:'02/16/2024',y:[36.09,36.09,35.69,35.85]},{ x:'02/19/2024',y:[35.57,35.74,35.49,35.49]},{ x:'02/20/2024',y:[35.49,35.70,35.44,35.44]},{ x:'02/21/2024',y:[35.06,35.22,35.06,35.08]},{ x:'02/22/2024',y:[35.34,35.83,35.34,35.74]},{ x:'02/23/2024',y:[36.15,36.49,36.15,36.48]},{ x:'02/26/2024',y:[36.44,36.51,36.17,36.51]},{ x:'02/27/2024',y:[36.51,36.77,36.47,36.76]},{ x:'02/29/2024',y:[36.50,36.68,36.38,36.62]},{ x:'03/01/2024',y:[36.93,37.19,36.93,37.08]},{ x:'03/04/2024',y:[37.62,38.01,37.35,37.99]},{ x:'03/05/2024',y:[37.99,38.29,37.83,38.28]},{ x:'03/06/2024',y:[38.00,38.00,37.55,38.00]},{ x:'03/07/2024',y:[38.00,38.45,38.00,38.05]},{ x:'03/08/2024',y:[38.27,38.94,38.27,38.61]},{ x:'03/11/2024',y:[38.02,38.13,37.91,38.10]},{ x:'03/12/2024',y:[37.80,38.06,37.75,38.01]},{ x:'03/13/2024',y:[38.05,38.36,38.02,38.31]},{ x:'03/14/2024',y:[37.68,37.89,37.65,37.76]},{ x:'03/15/2024',y:[37.45,37.53,37.39,37.39]},{ x:'03/18/2024',y:[37.22,37.65,37.22,37.65]},{ x:'03/19/2024',y:[37.64,37.85,37.57,37.81]},{ x:'03/20/2024',y:[37.81,37.90,37.77,37.78]},{ x:'03/21/2024',y:[38.09,38.55,38.04,38.51]},{ x:'03/22/2024',y:[38.97,39.23,38.84,39.19]},{ x:'03/25/2024',y:[38.96,39.07,38.67,38.96]},{ x:'03/26/2024',y:[38.52,38.76,38.51,38.60]},{ x:'03/27/2024',y:[38.60,38.65,38.42,38.48]},{ x:'03/28/2024',y:[38.50,38.50,38.37,38.50]},{ x:'03/29/2024',y:[38.50,38.50,38.32,38.45]},{ x:'04/01/2024',y:[38.45,38.89,38.42,38.43]},{ x:'04/02/2024',y:[38.41,38.60,38.41,38.48]},{ x:'04/03/2024',y:[38.46,38.75,38.17,38.17]},{ x:'04/08/2024',y:[38.17,38.35,38.03,38.06]},{ x:'04/09/2024',y:[38.40,38.66,38.32,38.66]},{ x:'04/10/2024',y:[38.75,38.94,38.73,38.93]},{ x:'04/11/2024',y:[38.47,38.51,38.34,38.51]},{ x:'04/12/2024',y:[38.71,38.96,38.70,38.81]},{ x:'04/15/2024',y:[38.45,38.48,38.12,38.20]},{ x:'04/16/2024',y:[38.00,38.00,37.63,37.76]},{ x:'04/17/2024',y:[37.67,37.97,37.66,37.89]},{ x:'04/18/2024',y:[37.39,37.60,37.12,37.24]},{ x:'04/19/2024',y:[36.56,36.56,35.79,36.02]},{ x:'04/22/2024',y:[35.61,35.78,35.59,35.67]},{ x:'04/23/2024',y:[35.76,35.90,35.72,35.74]},{ x:'04/24/2024',y:[36.47,36.77,36.47,36.76]},{ x:'04/25/2024',y:[36.91,36.93,36.52,36.52]},{ x:'04/26/2024',y:[36.52,36.85,36.52,36.82]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00876 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());