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:[18.08,18.10,17.83,18.02]},{ x:'01/24/2024',y:[18.20,18.29,17.91,17.97]},{ x:'01/25/2024',y:[18.50,18.59,18.30,18.57]},{ x:'01/26/2024',y:[18.58,18.62,18.42,18.47]},{ x:'01/29/2024',y:[18.52,18.65,18.48,18.49]},{ x:'01/30/2024',y:[18.49,18.49,18.10,18.18]},{ x:'01/31/2024',y:[18.06,18.25,18.01,18.18]},{ x:'02/01/2024',y:[18.15,18.32,18.06,18.22]},{ x:'02/02/2024',y:[18.20,18.22,17.95,17.99]},{ x:'02/05/2024',y:[17.99,18.38,17.81,18.29]},{ x:'02/15/2024',y:[18.73,18.87,18.68,18.82]},{ x:'02/16/2024',y:[18.87,19.16,18.85,19.16]},{ x:'02/19/2024',y:[19.16,19.23,18.97,19.00]},{ x:'02/20/2024',y:[19.05,19.21,19.05,19.11]},{ x:'02/21/2024',y:[19.12,19.75,19.12,19.71]},{ x:'02/22/2024',y:[19.60,19.72,19.54,19.72]},{ x:'02/23/2024',y:[19.76,19.88,19.67,19.74]},{ x:'02/26/2024',y:[19.72,19.76,19.47,19.55]},{ x:'02/27/2024',y:[19.50,19.58,19.39,19.53]},{ x:'02/29/2024',y:[19.45,19.71,19.40,19.58]},{ x:'03/01/2024',y:[19.60,19.68,19.54,19.63]},{ x:'03/04/2024',y:[19.60,19.65,19.46,19.46]},{ x:'03/05/2024',y:[19.46,19.69,19.38,19.60]},{ x:'03/06/2024',y:[19.67,19.85,19.67,19.73]},{ x:'03/07/2024',y:[19.75,19.80,19.59,19.63]},{ x:'03/08/2024',y:[19.60,19.66,19.47,19.52]},{ x:'03/11/2024',y:[19.52,19.93,19.52,19.81]},{ x:'03/12/2024',y:[19.93,20.13,19.90,20.12]},{ x:'03/13/2024',y:[20.11,20.11,19.89,19.98]},{ x:'03/14/2024',y:[19.97,20.08,19.86,19.91]},{ x:'03/15/2024',y:[19.88,20.01,19.83,19.85]},{ x:'03/18/2024',y:[19.93,20.13,19.93,20.02]},{ x:'03/19/2024',y:[20.05,20.18,20.03,20.15]},{ x:'03/20/2024',y:[20.15,20.25,20.03,20.17]},{ x:'03/21/2024',y:[20.19,20.28,20.15,20.19]},{ x:'03/22/2024',y:[20.19,20.22,19.88,20.07]},{ x:'03/25/2024',y:[20.03,20.12,19.95,20.09]},{ x:'03/26/2024',y:[20.02,20.13,20.00,20.11]},{ x:'03/27/2024',y:[20.11,20.18,20.09,20.09]},{ x:'03/28/2024',y:[20.06,20.23,19.92,20.15]},{ x:'03/29/2024',y:[20.15,20.20,20.07,20.09]},{ x:'04/01/2024',y:[20.11,20.49,20.10,20.38]},{ x:'04/02/2024',y:[20.39,20.52,20.30,20.38]},{ x:'04/03/2024',y:[20.40,20.42,20.26,20.35]},{ x:'04/08/2024',y:[20.35,20.44,20.15,20.28]},{ x:'04/09/2024',y:[20.24,20.26,20.13,20.14]},{ x:'04/10/2024',y:[20.14,20.17,20.02,20.09]},{ x:'04/11/2024',y:[19.99,20.10,19.95,20.10]},{ x:'04/12/2024',y:[20.05,20.10,19.98,20.03]},{ x:'04/15/2024',y:[19.83,20.39,19.82,20.37]},{ x:'04/16/2024',y:[20.36,20.50,20.28,20.48]},{ x:'04/17/2024',y:[20.39,20.43,20.26,20.35]},{ x:'04/18/2024',y:[20.45,20.74,20.44,20.61]},{ x:'04/19/2024',y:[20.58,20.63,20.41,20.48]},{ x:'04/22/2024',y:[20.50,20.71,20.50,20.59]},{ x:'04/23/2024',y:[20.60,20.64,20.44,20.57]},{ x:'04/24/2024',y:[20.57,20.66,20.45,20.51]},{ x:'04/25/2024',y:[20.51,20.71,20.51,20.63]},{ x:'04/26/2024',y:[20.67,20.96,20.65,20.93]},{ x:'04/29/2024',y:[20.95,21.31,20.94,21.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00636 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());