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.19,21.25,21.07,21.09]},{ x:'01/23/2024',y:[20.78,20.93,20.69,20.93]},{ x:'01/24/2024',y:[20.99,21.05,20.96,20.96]},{ x:'01/25/2024',y:[21.23,21.32,21.22,21.32]},{ x:'01/26/2024',y:[21.45,21.49,21.43,21.47]},{ x:'01/29/2024',y:[21.46,21.49,21.43,21.47]},{ x:'01/30/2024',y:[21.72,21.73,21.63,21.65]},{ x:'01/31/2024',y:[21.65,21.67,21.58,21.61]},{ x:'02/01/2024',y:[21.49,21.54,21.42,21.48]},{ x:'02/02/2024',y:[21.67,21.69,21.60,21.65]},{ x:'02/05/2024',y:[21.16,21.20,21.09,21.12]},{ x:'02/15/2024',y:[20.96,21.04,20.90,20.99]},{ x:'02/16/2024',y:[21.35,21.44,21.32,21.43]},{ x:'02/19/2024',y:[21.64,21.65,21.49,21.56]},{ x:'02/20/2024',y:[21.42,21.49,21.42,21.44]},{ x:'02/21/2024',y:[21.46,21.61,21.46,21.59]},{ x:'02/22/2024',y:[21.39,21.46,21.35,21.46]},{ x:'02/23/2024',y:[21.29,21.33,21.21,21.24]},{ x:'02/26/2024',y:[21.32,21.35,21.26,21.34]},{ x:'02/27/2024',y:[21.02,21.09,21.02,21.03]},{ x:'02/29/2024',y:[20.97,21.05,20.96,21.02]},{ x:'03/01/2024',y:[21.17,21.25,21.12,21.19]},{ x:'03/04/2024',y:[21.53,21.56,21.45,21.45]},{ x:'03/05/2024',y:[22.19,22.20,22.00,22.08]},{ x:'03/06/2024',y:[22.04,22.05,21.95,22.01]},{ x:'03/07/2024',y:[22.43,22.53,22.35,22.41]},{ x:'03/08/2024',y:[22.65,22.67,22.55,22.61]},{ x:'03/11/2024',y:[22.68,22.68,22.52,22.57]},{ x:'03/12/2024',y:[22.69,22.76,22.68,22.75]},{ x:'03/13/2024',y:[22.44,22.46,22.36,22.40]},{ x:'03/14/2024',y:[23.29,23.35,23.15,23.17]},{ x:'03/15/2024',y:[23.10,23.26,23.10,23.24]},{ x:'03/18/2024',y:[23.38,23.38,23.20,23.23]},{ x:'03/19/2024',y:[23.35,23.38,23.29,23.33]},{ x:'03/20/2024',y:[23.15,23.23,23.13,23.14]},{ x:'03/21/2024',y:[23.81,23.95,23.81,23.83]},{ x:'03/22/2024',y:[23.04,23.08,22.83,22.86]},{ x:'03/25/2024',y:[22.93,23.14,22.91,22.92]},{ x:'03/26/2024',y:[22.94,22.96,22.88,22.90]},{ x:'03/27/2024',y:[22.71,22.74,22.62,22.72]},{ x:'03/28/2024',y:[22.80,22.95,22.80,22.89]},{ x:'03/29/2024',y:[23.16,23.23,23.15,23.23]},{ x:'04/01/2024',y:[23.45,23.48,23.29,23.41]},{ x:'04/02/2024',y:[23.41,23.57,23.36,23.56]},{ x:'04/03/2024',y:[24.31,24.64,24.27,24.44]},{ x:'04/08/2024',y:[25.02,26.06,24.95,25.82]},{ x:'04/09/2024',y:[25.86,26.10,25.79,25.87]},{ x:'04/10/2024',y:[26.07,26.20,25.96,26.20]},{ x:'04/11/2024',y:[25.81,26.03,25.77,26.00]},{ x:'04/12/2024',y:[26.48,26.85,26.44,26.76]},{ x:'04/15/2024',y:[26.10,26.32,26.02,26.30]},{ x:'04/16/2024',y:[26.91,26.91,26.65,26.80]},{ x:'04/17/2024',y:[26.20,26.30,26.12,26.30]},{ x:'04/18/2024',y:[26.29,26.44,26.13,26.41]},{ x:'04/19/2024',y:[26.26,26.87,26.13,26.25]},{ x:'04/22/2024',y:[26.44,26.44,25.89,26.01]},{ x:'04/23/2024',y:[25.35,25.43,24.93,25.13]},{ x:'04/24/2024',y:[25.26,25.52,25.25,25.41]},{ x:'04/25/2024',y:[25.31,25.37,25.05,25.18]},{ x:'04/26/2024',y:[25.40,25.63,25.33,25.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00738u 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());