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.05,19.16,18.70,18.92]},{ x:'01/23/2024',y:[18.70,18.92,18.33,18.64]},{ x:'01/24/2024',y:[18.97,19.14,18.34,18.51]},{ x:'01/25/2024',y:[19.51,19.74,19.15,19.74]},{ x:'01/26/2024',y:[19.69,19.90,19.46,19.59]},{ x:'01/29/2024',y:[19.90,20.04,19.71,19.75]},{ x:'01/30/2024',y:[19.60,19.60,19.03,19.13]},{ x:'01/31/2024',y:[18.78,19.12,18.70,18.99]},{ x:'02/01/2024',y:[19.00,19.24,18.70,19.06]},{ x:'02/02/2024',y:[19.02,19.19,18.56,18.68]},{ x:'02/05/2024',y:[18.45,19.42,18.18,19.24]},{ x:'02/15/2024',y:[20.40,20.47,20.13,20.36]},{ x:'02/16/2024',y:[20.54,21.12,20.51,21.12]},{ x:'02/19/2024',y:[21.24,21.26,20.67,20.73]},{ x:'02/20/2024',y:[20.81,21.06,20.74,20.82]},{ x:'02/21/2024',y:[20.90,22.36,20.88,22.36]},{ x:'02/22/2024',y:[22.14,22.19,21.80,22.19]},{ x:'02/23/2024',y:[22.28,22.49,22.00,22.20]},{ x:'02/26/2024',y:[22.15,22.27,21.53,21.76]},{ x:'02/27/2024',y:[21.60,21.71,21.37,21.61]},{ x:'02/29/2024',y:[21.41,21.99,21.35,21.78]},{ x:'03/01/2024',y:[21.79,22.05,21.59,21.90]},{ x:'03/04/2024',y:[21.92,21.97,21.71,21.81]},{ x:'03/05/2024',y:[21.76,22.28,21.56,22.15]},{ x:'03/06/2024',y:[22.27,22.54,22.22,22.31]},{ x:'03/07/2024',y:[22.13,22.36,21.98,22.04]},{ x:'03/08/2024',y:[22.04,22.13,21.68,21.83]},{ x:'03/11/2024',y:[21.84,22.75,21.84,22.47]},{ x:'03/12/2024',y:[22.82,23.25,22.60,23.20]},{ x:'03/13/2024',y:[23.15,23.15,22.64,22.81]},{ x:'03/14/2024',y:[22.70,23.08,22.57,22.64]},{ x:'03/15/2024',y:[22.55,22.83,22.38,22.42]},{ x:'03/18/2024',y:[22.72,23.06,22.60,22.83]},{ x:'03/19/2024',y:[22.85,23.13,22.72,22.99]},{ x:'03/20/2024',y:[22.90,23.19,22.68,23.08]},{ x:'03/21/2024',y:[23.13,23.34,23.02,23.08]},{ x:'03/22/2024',y:[23.04,23.10,22.34,22.68]},{ x:'03/25/2024',y:[22.72,22.93,22.53,22.85]},{ x:'03/26/2024',y:[22.70,23.00,22.67,22.89]},{ x:'03/27/2024',y:[22.99,23.05,22.80,22.86]},{ x:'03/28/2024',y:[22.68,23.12,22.36,22.98]},{ x:'03/29/2024',y:[22.77,23.06,22.74,22.78]},{ x:'04/01/2024',y:[22.95,23.74,22.95,23.50]},{ x:'04/02/2024',y:[23.33,23.64,23.23,23.32]},{ x:'04/03/2024',y:[23.38,23.38,23.00,23.25]},{ x:'04/08/2024',y:[23.24,23.24,22.66,22.92]},{ x:'04/09/2024',y:[22.82,22.97,22.55,22.55]},{ x:'04/10/2024',y:[22.69,22.74,22.42,22.51]},{ x:'04/11/2024',y:[22.26,22.46,22.08,22.46]},{ x:'04/12/2024',y:[22.31,22.55,22.17,22.21]},{ x:'04/15/2024',y:[21.89,23.10,21.75,23.10]},{ x:'04/16/2024',y:[22.96,23.17,22.64,23.12]},{ x:'04/17/2024',y:[22.97,23.05,22.62,22.95]},{ x:'04/18/2024',y:[23.18,23.87,23.08,23.51]},{ x:'04/19/2024',y:[23.36,23.48,22.88,23.08]},{ x:'04/22/2024',y:[23.14,23.56,23.10,23.19]},{ x:'04/23/2024',y:[23.23,23.32,22.85,23.14]},{ x:'04/24/2024',y:[23.24,23.53,23.00,23.13]},{ x:'04/25/2024',y:[23.20,23.53,23.04,23.36]},{ x:'04/26/2024',y:[23.41,24.10,23.41,24.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00655l 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());