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/23/2024',y:[15.43,15.43,15.35,15.38]},{ x:'01/24/2024',y:[15.40,15.42,15.39,15.39]},{ x:'01/25/2024',y:[15.45,15.50,15.45,15.50]},{ x:'01/26/2024',y:[15.47,15.53,15.47,15.50]},{ x:'01/29/2024',y:[15.55,15.59,15.50,15.59]},{ x:'01/30/2024',y:[15.53,15.55,15.52,15.53]},{ x:'01/31/2024',y:[15.48,15.50,15.43,15.44]},{ x:'02/01/2024',y:[15.40,15.52,15.40,15.52]},{ x:'02/02/2024',y:[15.54,15.58,15.54,15.57]},{ x:'02/05/2024',y:[15.53,15.60,15.49,15.59]},{ x:'02/15/2024',y:[15.70,16.11,15.70,16.03]},{ x:'02/16/2024',y:[16.01,16.05,15.99,16.01]},{ x:'02/19/2024',y:[16.02,16.08,15.99,16.08]},{ x:'02/20/2024',y:[16.05,16.26,16.05,16.24]},{ x:'02/21/2024',y:[16.20,16.20,16.13,16.14]},{ x:'02/22/2024',y:[16.21,16.30,16.21,16.30]},{ x:'02/23/2024',y:[16.36,16.42,16.32,16.32]},{ x:'02/26/2024',y:[16.32,16.35,16.25,16.35]},{ x:'02/27/2024',y:[16.37,16.41,16.23,16.37]},{ x:'02/29/2024',y:[16.30,16.53,16.30,16.53]},{ x:'03/01/2024',y:[16.49,16.54,16.46,16.48]},{ x:'03/04/2024',y:[16.52,16.70,16.52,16.67]},{ x:'03/05/2024',y:[16.75,16.75,16.67,16.72]},{ x:'03/06/2024',y:[16.66,16.80,16.65,16.77]},{ x:'03/07/2024',y:[16.85,17.03,16.85,16.99]},{ x:'03/08/2024',y:[17.08,17.25,16.99,17.05]},{ x:'03/11/2024',y:[17.05,17.05,16.96,16.98]},{ x:'03/12/2024',y:[17.11,17.11,16.93,17.08]},{ x:'03/13/2024',y:[17.10,17.19,17.10,17.13]},{ x:'03/14/2024',y:[17.12,17.22,17.09,17.17]},{ x:'03/15/2024',y:[17.14,17.14,17.04,17.05]},{ x:'03/18/2024',y:[17.05,17.14,17.05,17.14]},{ x:'03/19/2024',y:[17.03,17.10,16.99,17.03]},{ x:'03/20/2024',y:[17.10,17.15,17.00,17.01]},{ x:'03/21/2024',y:[17.14,17.35,17.14,17.35]},{ x:'03/22/2024',y:[17.33,17.35,17.28,17.33]},{ x:'03/25/2024',y:[17.33,17.37,17.30,17.36]},{ x:'03/26/2024',y:[17.37,17.49,17.21,17.31]},{ x:'03/27/2024',y:[17.29,17.33,17.25,17.30]},{ x:'03/28/2024',y:[17.35,17.35,17.13,17.23]},{ x:'03/29/2024',y:[17.26,17.36,17.25,17.34]},{ x:'04/01/2024',y:[17.34,17.42,17.33,17.33]},{ x:'04/02/2024',y:[17.38,17.43,17.38,17.40]},{ x:'04/03/2024',y:[17.36,17.36,17.23,17.29]},{ x:'04/08/2024',y:[17.30,17.38,17.27,17.34]},{ x:'04/09/2024',y:[17.42,17.63,17.42,17.62]},{ x:'04/10/2024',y:[17.62,17.71,17.61,17.68]},{ x:'04/11/2024',y:[17.65,17.65,17.55,17.62]},{ x:'04/12/2024',y:[17.62,17.63,17.54,17.58]},{ x:'04/15/2024',y:[17.50,17.50,17.37,17.40]},{ x:'04/16/2024',y:[17.28,17.28,16.89,16.97]},{ x:'04/17/2024',y:[16.92,17.12,16.92,17.11]},{ x:'04/18/2024',y:[17.00,17.00,16.77,16.99]},{ x:'04/19/2024',y:[16.70,16.70,16.10,16.28]},{ x:'04/22/2024',y:[16.27,16.30,16.16,16.22]},{ x:'04/23/2024',y:[16.30,16.39,16.29,16.35]},{ x:'04/24/2024',y:[16.48,16.75,16.48,16.74]},{ x:'04/25/2024',y:[16.62,16.62,16.41,16.43]},{ x:'04/26/2024',y:[16.56,16.77,16.56,16.70]},{ x:'04/29/2024',y:[16.79,17.05,16.79,17.03]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00912 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());