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:[19.79,19.84,19.79,19.84]},{ x:'01/23/2024',y:[19.86,19.92,19.86,19.92]},{ x:'01/24/2024',y:[19.97,20.16,19.97,20.03]},{ x:'01/25/2024',y:[20.11,20.14,20.09,20.12]},{ x:'01/26/2024',y:[20.06,20.10,19.95,19.97]},{ x:'01/29/2024',y:[19.97,20.17,19.97,20.17]},{ x:'01/30/2024',y:[20.17,20.20,20.10,20.16]},{ x:'01/31/2024',y:[20.16,20.16,20.05,20.11]},{ x:'02/01/2024',y:[20.11,20.11,20.01,20.04]},{ x:'02/02/2024',y:[20.10,20.16,20.10,20.16]},{ x:'02/05/2024',y:[20.05,20.10,20.02,20.07]},{ x:'02/15/2024',y:[20.26,20.36,20.13,20.30]},{ x:'02/16/2024',y:[20.33,20.58,20.33,20.50]},{ x:'02/19/2024',y:[20.55,20.62,20.53,20.57]},{ x:'02/20/2024',y:[20.67,20.83,20.67,20.80]},{ x:'02/21/2024',y:[20.81,20.85,20.75,20.75]},{ x:'02/22/2024',y:[20.85,21.05,20.85,21.05]},{ x:'02/23/2024',y:[21.09,21.23,21.06,21.15]},{ x:'02/26/2024',y:[21.16,21.41,21.16,21.40]},{ x:'02/27/2024',y:[21.41,21.52,21.20,21.40]},{ x:'02/29/2024',y:[21.35,21.46,21.30,21.45]},{ x:'03/01/2024',y:[21.48,21.63,21.48,21.56]},{ x:'03/04/2024',y:[21.61,21.80,21.61,21.69]},{ x:'03/05/2024',y:[21.67,21.77,21.60,21.75]},{ x:'03/06/2024',y:[21.79,22.20,21.79,22.16]},{ x:'03/07/2024',y:[22.33,22.60,22.25,22.59]},{ x:'03/08/2024',y:[22.96,23.00,22.60,22.79]},{ x:'03/11/2024',y:[22.74,22.94,22.62,22.74]},{ x:'03/12/2024',y:[22.73,23.06,22.73,23.06]},{ x:'03/13/2024',y:[23.26,23.40,23.13,23.40]},{ x:'03/14/2024',y:[23.38,23.38,22.67,22.75]},{ x:'03/15/2024',y:[22.51,22.73,22.39,22.47]},{ x:'03/18/2024',y:[22.45,22.85,22.35,22.85]},{ x:'03/19/2024',y:[22.83,23.38,22.83,23.36]},{ x:'03/20/2024',y:[23.41,23.65,23.10,23.13]},{ x:'03/21/2024',y:[23.26,23.30,23.04,23.04]},{ x:'03/22/2024',y:[22.97,22.97,22.52,22.56]},{ x:'03/25/2024',y:[22.56,22.73,22.40,22.41]},{ x:'03/26/2024',y:[22.51,22.66,22.12,22.35]},{ x:'03/27/2024',y:[22.44,22.77,22.42,22.71]},{ x:'03/28/2024',y:[22.91,23.01,22.71,22.81]},{ x:'03/29/2024',y:[22.80,22.92,22.64,22.87]},{ x:'04/01/2024',y:[22.87,22.93,22.74,22.84]},{ x:'04/02/2024',y:[22.88,23.04,22.88,22.97]},{ x:'04/03/2024',y:[22.96,23.04,22.90,22.90]},{ x:'04/08/2024',y:[22.88,22.92,22.75,22.84]},{ x:'04/09/2024',y:[22.96,23.01,22.88,23.01]},{ x:'04/10/2024',y:[23.04,23.22,22.99,23.20]},{ x:'04/11/2024',y:[23.01,23.01,22.94,22.96]},{ x:'04/12/2024',y:[23.02,23.13,23.00,23.10]},{ x:'04/15/2024',y:[22.97,22.97,22.80,22.85]},{ x:'04/16/2024',y:[22.60,22.60,22.26,22.32]},{ x:'04/17/2024',y:[22.45,22.61,22.45,22.59]},{ x:'04/18/2024',y:[22.49,22.60,22.44,22.55]},{ x:'04/19/2024',y:[22.37,22.39,21.81,21.99]},{ x:'04/22/2024',y:[21.98,22.05,21.63,21.77]},{ x:'04/23/2024',y:[22.05,22.06,21.87,21.88]},{ x:'04/24/2024',y:[22.19,22.43,22.19,22.43]},{ x:'04/25/2024',y:[22.30,22.30,22.11,22.11]},{ x:'04/26/2024',y:[22.25,22.42,22.23,22.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00730 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());