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:[9.55,9.58,9.47,9.52]},{ x:'01/23/2024',y:[9.42,9.51,9.33,9.51]},{ x:'01/24/2024',y:[9.54,9.62,9.30,9.35]},{ x:'01/25/2024',y:[9.58,9.73,9.51,9.70]},{ x:'01/26/2024',y:[9.68,9.70,9.51,9.54]},{ x:'01/29/2024',y:[9.54,9.62,9.42,9.42]},{ x:'01/30/2024',y:[9.40,9.40,9.23,9.25]},{ x:'01/31/2024',y:[9.23,9.23,9.09,9.15]},{ x:'02/01/2024',y:[9.15,9.32,9.08,9.24]},{ x:'02/02/2024',y:[9.23,9.23,8.99,9.02]},{ x:'02/05/2024',y:[9.05,9.14,8.80,9.11]},{ x:'02/15/2024',y:[9.39,9.60,9.34,9.54]},{ x:'02/16/2024',y:[9.54,9.71,9.54,9.71]},{ x:'02/19/2024',y:[9.73,9.78,9.61,9.63]},{ x:'02/20/2024',y:[9.70,9.73,9.63,9.65]},{ x:'02/21/2024',y:[9.72,10.17,9.67,10.17]},{ x:'02/22/2024',y:[10.14,10.14,9.97,10.04]},{ x:'02/23/2024',y:[10.04,10.07,9.97,9.97]},{ x:'02/26/2024',y:[9.97,10.06,9.95,10.03]},{ x:'02/27/2024',y:[10.02,10.11,9.94,10.09]},{ x:'02/29/2024',y:[10.03,10.24,10.00,10.16]},{ x:'03/01/2024',y:[10.16,10.32,10.16,10.27]},{ x:'03/04/2024',y:[10.33,10.37,10.28,10.30]},{ x:'03/05/2024',y:[10.38,10.38,10.24,10.34]},{ x:'03/06/2024',y:[10.32,10.44,10.28,10.36]},{ x:'03/07/2024',y:[10.35,10.37,10.24,10.24]},{ x:'03/08/2024',y:[10.16,10.26,10.14,10.19]},{ x:'03/11/2024',y:[10.18,10.48,10.18,10.43]},{ x:'03/12/2024',y:[10.45,10.62,10.45,10.61]},{ x:'03/13/2024',y:[10.61,10.61,10.51,10.56]},{ x:'03/14/2024',y:[10.56,10.64,10.50,10.53]},{ x:'03/15/2024',y:[10.57,10.59,10.39,10.40]},{ x:'03/18/2024',y:[10.59,10.64,10.54,10.63]},{ x:'03/19/2024',y:[10.64,10.73,10.63,10.72]},{ x:'03/20/2024',y:[10.66,10.73,10.65,10.71]},{ x:'03/21/2024',y:[10.76,10.77,10.66,10.68]},{ x:'03/22/2024',y:[10.68,10.68,10.49,10.59]},{ x:'03/25/2024',y:[10.59,10.64,10.53,10.61]},{ x:'03/26/2024',y:[10.55,10.56,10.48,10.52]},{ x:'03/27/2024',y:[10.52,10.53,10.46,10.47]},{ x:'03/28/2024',y:[10.45,10.58,10.36,10.53]},{ x:'03/29/2024',y:[10.53,10.53,10.41,10.42]},{ x:'04/01/2024',y:[10.52,10.76,10.47,10.74]},{ x:'04/02/2024',y:[10.75,10.77,10.70,10.71]},{ x:'04/03/2024',y:[10.78,10.78,10.64,10.65]},{ x:'04/08/2024',y:[10.75,10.75,10.57,10.59]},{ x:'04/09/2024',y:[10.52,10.58,10.49,10.54]},{ x:'04/10/2024',y:[10.50,10.55,10.38,10.38]},{ x:'04/11/2024',y:[10.35,10.46,10.31,10.45]},{ x:'04/12/2024',y:[10.42,10.43,10.35,10.40]},{ x:'04/15/2024',y:[10.34,10.60,10.29,10.59]},{ x:'04/16/2024',y:[10.50,10.61,10.49,10.57]},{ x:'04/17/2024',y:[10.52,10.57,10.47,10.49]},{ x:'04/18/2024',y:[10.53,10.69,10.53,10.65]},{ x:'04/19/2024',y:[10.63,10.63,10.43,10.49]},{ x:'04/22/2024',y:[10.48,10.56,10.48,10.51]},{ x:'04/23/2024',y:[10.66,10.66,10.42,10.44]},{ x:'04/24/2024',y:[10.48,10.48,10.36,10.43]},{ x:'04/25/2024',y:[10.53,10.53,10.42,10.47]},{ x:'04/26/2024',y:[10.36,10.69,10.36,10.69]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00639 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());