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:[23.40,23.44,23.35,23.35]},{ x:'01/23/2024',y:[23.35,23.43,23.35,23.41]},{ x:'01/24/2024',y:[23.41,23.45,23.41,23.42]},{ x:'01/25/2024',y:[23.45,23.49,23.45,23.47]},{ x:'01/26/2024',y:[23.47,23.69,23.47,23.60]},{ x:'01/29/2024',y:[23.60,23.68,23.58,23.61]},{ x:'01/30/2024',y:[23.66,23.67,23.50,23.51]},{ x:'01/31/2024',y:[23.50,23.50,23.38,23.50]},{ x:'02/01/2024',y:[23.52,23.62,23.52,23.62]},{ x:'02/02/2024',y:[23.64,23.64,23.57,23.60]},{ x:'02/05/2024',y:[23.60,23.60,23.36,23.47]},{ x:'02/15/2024',y:[23.51,23.70,23.47,23.57]},{ x:'02/16/2024',y:[23.49,23.57,23.37,23.54]},{ x:'02/19/2024',y:[23.54,23.77,23.54,23.75]},{ x:'02/20/2024',y:[23.76,23.92,23.76,23.91]},{ x:'02/21/2024',y:[23.92,23.92,23.75,23.77]},{ x:'02/22/2024',y:[23.78,23.88,23.75,23.88]},{ x:'02/23/2024',y:[23.88,23.90,23.74,23.80]},{ x:'02/26/2024',y:[23.75,23.80,23.65,23.80]},{ x:'02/27/2024',y:[23.80,23.89,23.71,23.75]},{ x:'02/29/2024',y:[23.75,23.98,23.75,23.98]},{ x:'03/01/2024',y:[23.98,23.98,23.88,23.92]},{ x:'03/04/2024',y:[23.92,23.92,23.85,23.90]},{ x:'03/05/2024',y:[23.88,23.91,23.84,23.89]},{ x:'03/06/2024',y:[23.89,24.07,23.85,24.01]},{ x:'03/07/2024',y:[23.96,24.18,23.96,24.13]},{ x:'03/08/2024',y:[24.13,24.28,24.12,24.25]},{ x:'03/11/2024',y:[24.34,24.57,24.34,24.52]},{ x:'03/12/2024',y:[24.50,24.65,24.50,24.61]},{ x:'03/13/2024',y:[24.70,24.88,24.64,24.88]},{ x:'03/14/2024',y:[24.91,25.40,24.91,25.38]},{ x:'03/15/2024',y:[25.38,25.38,25.01,25.17]},{ x:'03/18/2024',y:[25.17,25.25,25.01,25.07]},{ x:'03/19/2024',y:[25.00,25.12,24.90,25.05]},{ x:'03/20/2024',y:[25.06,25.06,24.86,24.86]},{ x:'03/21/2024',y:[24.90,25.30,24.90,25.26]},{ x:'03/22/2024',y:[25.31,25.45,25.12,25.30]},{ x:'03/25/2024',y:[25.25,25.25,25.12,25.17]},{ x:'03/26/2024',y:[25.20,25.39,25.14,25.30]},{ x:'03/27/2024',y:[25.26,25.38,25.26,25.30]},{ x:'03/28/2024',y:[25.39,25.39,25.18,25.18]},{ x:'03/29/2024',y:[25.18,25.39,25.18,25.38]},{ x:'04/01/2024',y:[25.38,25.47,25.32,25.32]},{ x:'04/02/2024',y:[25.32,25.32,25.23,25.25]},{ x:'04/03/2024',y:[25.25,25.25,25.03,25.03]},{ x:'04/08/2024',y:[25.03,25.23,25.03,25.23]},{ x:'04/09/2024',y:[25.23,25.41,25.23,25.39]},{ x:'04/10/2024',y:[25.39,25.50,25.36,25.38]},{ x:'04/11/2024',y:[25.35,25.38,25.22,25.28]},{ x:'04/12/2024',y:[25.27,25.27,25.13,25.15]},{ x:'04/15/2024',y:[25.06,25.23,24.98,25.15]},{ x:'04/16/2024',y:[25.03,25.11,24.49,24.57]},{ x:'04/17/2024',y:[24.57,24.73,24.52,24.70]},{ x:'04/18/2024',y:[24.69,24.92,24.63,24.89]},{ x:'04/19/2024',y:[24.70,24.75,24.20,24.47]},{ x:'04/22/2024',y:[24.47,24.90,24.47,24.86]},{ x:'04/23/2024',y:[24.88,25.06,24.88,25.01]},{ x:'04/24/2024',y:[25.07,25.14,24.99,24.99]},{ x:'04/25/2024',y:[24.91,24.91,24.69,24.77]},{ x:'04/26/2024',y:[24.80,25.00,24.80,24.88]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0055 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());