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:'03/02/2023',y:[22.30,22.40,22.24,22.27]},{ x:'03/03/2023',y:[22.41,22.41,22.17,22.28]},{ x:'03/06/2023',y:[22.35,22.35,22.02,22.13]},{ x:'03/07/2023',y:[22.10,22.17,21.97,22.00]},{ x:'03/08/2023',y:[21.78,21.78,21.57,21.59]},{ x:'03/09/2023',y:[21.60,21.72,21.44,21.55]},{ x:'03/10/2023',y:[21.39,21.52,21.23,21.38]},{ x:'03/13/2023',y:[21.48,21.65,21.37,21.57]},{ x:'03/14/2023',y:[21.57,21.58,21.28,21.39]},{ x:'03/15/2023',y:[21.51,21.61,21.44,21.48]},{ x:'03/16/2023',y:[21.32,21.48,21.21,21.36]},{ x:'03/17/2023',y:[21.33,21.65,21.31,21.49]},{ x:'03/20/2023',y:[21.31,21.37,21.12,21.15]},{ x:'03/21/2023',y:[21.24,21.46,21.22,21.46]},{ x:'03/22/2023',y:[21.45,21.62,21.45,21.48]},{ x:'03/23/2023',y:[21.38,21.66,21.37,21.65]},{ x:'03/24/2023',y:[21.70,21.72,21.58,21.62]},{ x:'03/27/2023',y:[21.56,21.56,21.24,21.32]},{ x:'03/28/2023',y:[21.30,21.39,21.29,21.37]},{ x:'03/29/2023',y:[21.49,21.62,21.42,21.44]},{ x:'03/30/2023',y:[21.59,21.63,21.43,21.63]},{ x:'03/31/2023',y:[21.73,21.98,21.73,21.82]},{ x:'04/06/2023',y:[21.75,21.75,21.53,21.59]},{ x:'04/07/2023',y:[21.68,21.80,21.59,21.69]},{ x:'04/10/2023',y:[21.74,21.77,21.48,21.71]},{ x:'04/11/2023',y:[21.71,21.76,21.58,21.59]},{ x:'04/12/2023',y:[21.69,21.69,21.43,21.47]},{ x:'04/13/2023',y:[21.43,21.55,21.33,21.49]},{ x:'04/14/2023',y:[21.57,21.70,21.55,21.62]},{ x:'04/17/2023',y:[21.60,21.83,21.48,21.83]},{ x:'04/18/2023',y:[21.85,22.18,21.85,22.02]},{ x:'04/19/2023',y:[22.14,22.14,21.88,21.91]},{ x:'04/20/2023',y:[21.92,21.92,21.70,21.70]},{ x:'04/21/2023',y:[21.77,21.77,21.57,21.61]},{ x:'04/24/2023',y:[21.48,21.48,21.22,21.26]},{ x:'04/25/2023',y:[21.26,21.29,21.06,21.12]},{ x:'04/26/2023',y:[21.12,21.28,21.07,21.26]},{ x:'04/27/2023',y:[21.29,21.30,21.16,21.30]},{ x:'04/28/2023',y:[21.44,21.68,21.44,21.60]},{ x:'05/02/2023',y:[21.60,21.77,21.51,21.61]},{ x:'05/03/2023',y:[21.57,21.58,21.40,21.50]},{ x:'05/04/2023',y:[21.50,21.80,21.50,21.74]},{ x:'05/05/2023',y:[21.80,21.80,21.57,21.68]},{ x:'05/08/2023',y:[21.75,21.97,21.67,21.84]},{ x:'05/09/2023',y:[21.97,22.11,21.77,22.06]},{ x:'05/10/2023',y:[21.93,21.93,21.62,21.68]},{ x:'05/11/2023',y:[21.59,21.68,21.53,21.56]},{ x:'05/12/2023',y:[21.67,21.67,21.37,21.40]},{ x:'05/15/2023',y:[21.29,21.45,21.23,21.45]},{ x:'05/16/2023',y:[21.62,21.66,21.50,21.56]},{ x:'05/17/2023',y:[21.49,21.49,21.26,21.26]},{ x:'05/18/2023',y:[21.22,21.36,21.22,21.23]},{ x:'05/19/2023',y:[21.08,21.10,20.82,20.99]},{ x:'05/22/2023',y:[21.00,21.29,20.93,21.20]},{ x:'05/23/2023',y:[21.23,21.23,20.95,20.96]},{ x:'05/24/2023',y:[20.88,20.88,20.63,20.71]},{ x:'05/25/2023',y:[20.55,20.56,20.35,20.36]},{ x:'05/26/2023',y:[20.38,20.39,20.17,20.39]},{ x:'05/29/2023',y:[20.39,20.44,20.12,20.20]},{ x:'05/30/2023',y:[20.16,20.24,19.86,19.88]} ] }], 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());