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:[21.99,22.05,21.96,22.05]},{ x:'01/23/2024',y:[22.07,22.15,22.06,22.14]},{ x:'01/24/2024',y:[22.18,22.23,22.16,22.18]},{ x:'01/25/2024',y:[22.24,22.27,22.21,22.26]},{ x:'01/26/2024',y:[22.26,22.26,22.12,22.16]},{ x:'01/29/2024',y:[22.15,22.34,22.14,22.33]},{ x:'01/30/2024',y:[22.35,22.35,22.27,22.27]},{ x:'01/31/2024',y:[22.27,22.27,22.13,22.16]},{ x:'02/01/2024',y:[22.20,22.20,22.11,22.19]},{ x:'02/02/2024',y:[22.20,22.20,22.10,22.14]},{ x:'02/05/2024',y:[22.08,22.10,21.89,22.08]},{ x:'02/15/2024',y:[22.11,22.20,22.02,22.11]},{ x:'02/16/2024',y:[22.26,22.27,22.15,22.17]},{ x:'02/19/2024',y:[22.20,22.34,22.18,22.34]},{ x:'02/20/2024',y:[22.35,22.42,22.33,22.41]},{ x:'02/21/2024',y:[22.41,22.59,22.40,22.54]},{ x:'02/22/2024',y:[22.57,22.74,22.57,22.74]},{ x:'02/23/2024',y:[22.76,22.90,22.69,22.69]},{ x:'02/26/2024',y:[22.71,22.89,22.69,22.87]},{ x:'02/27/2024',y:[22.89,22.89,22.66,22.79]},{ x:'02/29/2024',y:[22.75,22.90,22.71,22.82]},{ x:'03/01/2024',y:[22.85,22.94,22.75,22.89]},{ x:'03/04/2024',y:[23.11,23.38,23.04,23.35]},{ x:'03/05/2024',y:[23.60,23.60,23.40,23.60]},{ x:'03/06/2024',y:[23.60,23.90,23.54,23.86]},{ x:'03/07/2024',y:[24.15,24.57,24.04,24.57]},{ x:'03/08/2024',y:[25.05,25.10,24.54,24.74]},{ x:'03/11/2024',y:[24.74,24.80,24.56,24.66]},{ x:'03/12/2024',y:[24.70,25.45,24.70,25.37]},{ x:'03/13/2024',y:[25.69,26.42,25.65,26.42]},{ x:'03/14/2024',y:[26.50,26.51,25.67,25.71]},{ x:'03/15/2024',y:[25.68,25.82,25.43,25.64]},{ x:'03/18/2024',y:[25.06,25.14,24.80,25.14]},{ x:'03/19/2024',y:[25.12,25.81,25.08,25.71]},{ x:'03/20/2024',y:[25.81,26.22,25.60,25.62]},{ x:'03/21/2024',y:[25.93,25.94,25.50,25.62]},{ x:'03/22/2024',y:[25.61,25.62,25.01,25.13]},{ x:'03/25/2024',y:[25.13,25.33,24.90,24.95]},{ x:'03/26/2024',y:[24.91,25.10,24.40,24.74]},{ x:'03/27/2024',y:[24.74,25.37,24.72,25.26]},{ x:'03/28/2024',y:[25.35,25.71,25.23,25.46]},{ x:'03/29/2024',y:[25.52,25.58,25.13,25.37]},{ x:'04/01/2024',y:[25.40,25.48,25.11,25.12]},{ x:'04/02/2024',y:[25.12,25.43,25.12,25.41]},{ x:'04/03/2024',y:[25.30,25.43,25.13,25.36]},{ x:'04/08/2024',y:[25.36,25.37,25.18,25.29]},{ x:'04/09/2024',y:[25.29,25.51,25.29,25.51]},{ x:'04/10/2024',y:[25.59,25.59,25.42,25.49]},{ x:'04/11/2024',y:[25.43,25.43,25.24,25.38]},{ x:'04/12/2024',y:[25.38,25.51,25.30,25.42]},{ x:'04/15/2024',y:[25.32,25.39,25.18,25.31]},{ x:'04/16/2024',y:[25.20,25.20,24.65,24.79]},{ x:'04/17/2024',y:[24.79,25.07,24.79,25.03]},{ x:'04/18/2024',y:[24.97,25.17,24.90,25.11]},{ x:'04/19/2024',y:[24.96,24.96,24.26,24.64]},{ x:'04/22/2024',y:[24.63,24.71,24.45,24.55]},{ x:'04/23/2024',y:[24.70,24.91,24.56,24.72]},{ x:'04/24/2024',y:[24.99,25.30,24.95,25.26]},{ x:'04/25/2024',y:[25.00,25.22,25.00,25.13]},{ x:'04/26/2024',y:[25.13,25.31,25.10,25.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00915 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());