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:[22.07,22.10,22.00,22.05]},{ x:'01/23/2024',y:[22.08,22.14,22.07,22.12]},{ x:'01/24/2024',y:[22.17,22.25,22.17,22.21]},{ x:'01/25/2024',y:[22.25,22.30,22.22,22.29]},{ x:'01/26/2024',y:[22.28,22.29,22.08,22.10]},{ x:'01/29/2024',y:[22.10,22.26,22.05,22.25]},{ x:'01/30/2024',y:[22.28,22.29,22.21,22.25]},{ x:'01/31/2024',y:[22.23,22.25,22.15,22.22]},{ x:'02/01/2024',y:[22.22,22.28,22.20,22.23]},{ x:'02/02/2024',y:[22.25,22.32,22.22,22.23]},{ x:'02/05/2024',y:[22.19,22.23,22.08,22.21]},{ x:'02/15/2024',y:[22.31,22.42,22.28,22.41]},{ x:'02/16/2024',y:[22.46,22.60,22.45,22.54]},{ x:'02/19/2024',y:[22.60,22.64,22.54,22.61]},{ x:'02/20/2024',y:[22.68,23.03,22.67,22.97]},{ x:'02/21/2024',y:[23.00,23.17,22.96,23.06]},{ x:'02/22/2024',y:[23.20,23.64,23.19,23.62]},{ x:'02/23/2024',y:[23.88,23.97,23.63,23.63]},{ x:'02/26/2024',y:[23.64,23.85,23.63,23.83]},{ x:'02/27/2024',y:[23.94,24.17,23.66,23.90]},{ x:'02/29/2024',y:[23.90,24.10,23.88,24.03]},{ x:'03/01/2024',y:[24.42,24.44,24.20,24.25]},{ x:'03/04/2024',y:[24.40,24.63,24.27,24.61]},{ x:'03/05/2024',y:[24.76,24.87,24.59,24.85]},{ x:'03/06/2024',y:[24.84,25.37,24.75,25.22]},{ x:'03/07/2024',y:[25.53,25.87,25.41,25.86]},{ x:'03/08/2024',y:[26.40,26.59,25.61,25.95]},{ x:'03/11/2024',y:[26.00,26.14,25.61,25.81]},{ x:'03/12/2024',y:[25.81,26.38,25.81,26.38]},{ x:'03/13/2024',y:[26.77,26.97,26.62,26.92]},{ x:'03/14/2024',y:[27.00,27.01,26.00,26.09]},{ x:'03/15/2024',y:[26.00,26.02,25.64,25.83]},{ x:'03/18/2024',y:[25.47,25.47,25.15,25.46]},{ x:'03/19/2024',y:[25.46,26.25,25.40,26.16]},{ x:'03/20/2024',y:[26.52,27.01,26.09,26.13]},{ x:'03/21/2024',y:[26.59,26.59,25.90,25.96]},{ x:'03/22/2024',y:[25.99,25.99,25.30,25.40]},{ x:'03/25/2024',y:[25.40,25.61,25.20,25.30]},{ x:'03/26/2024',y:[25.36,25.48,24.60,24.99]},{ x:'03/27/2024',y:[25.06,25.64,24.92,25.51]},{ x:'03/28/2024',y:[25.66,25.78,25.22,25.32]},{ x:'03/29/2024',y:[25.34,25.45,25.05,25.26]},{ x:'04/01/2024',y:[25.33,25.38,25.02,25.04]},{ x:'04/02/2024',y:[25.04,25.23,25.04,25.21]},{ x:'04/03/2024',y:[25.10,25.33,25.02,25.19]},{ x:'04/08/2024',y:[25.23,25.26,25.02,25.17]},{ x:'04/09/2024',y:[25.17,25.24,25.12,25.20]},{ x:'04/10/2024',y:[25.20,25.45,25.20,25.30]},{ x:'04/11/2024',y:[25.21,25.31,25.10,25.25]},{ x:'04/12/2024',y:[25.30,25.41,25.26,25.35]},{ x:'04/15/2024',y:[25.29,25.30,25.11,25.22]},{ x:'04/16/2024',y:[25.03,25.05,24.50,24.54]},{ x:'04/17/2024',y:[24.54,24.84,24.54,24.80]},{ x:'04/18/2024',y:[24.73,24.80,24.58,24.73]},{ x:'04/19/2024',y:[24.55,24.55,23.80,24.15]},{ x:'04/22/2024',y:[24.11,24.15,23.66,23.67]},{ x:'04/23/2024',y:[23.86,23.99,23.67,23.74]},{ x:'04/24/2024',y:[23.99,24.51,23.98,24.46]},{ x:'04/25/2024',y:[24.28,24.45,24.26,24.28]},{ x:'04/26/2024',y:[24.35,24.50,24.35,24.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00919 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());