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:'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]},{ x:'05/31/2023',y:[19.98,20.00,19.72,19.75]},{ x:'06/01/2023',y:[19.75,20.08,19.73,19.94]},{ x:'06/02/2023',y:[19.94,20.22,19.94,20.16]},{ x:'06/05/2023',y:[20.33,20.33,20.04,20.11]},{ x:'06/06/2023',y:[20.11,20.36,19.98,20.20]},{ x:'06/07/2023',y:[20.18,20.18,19.93,20.00]},{ x:'06/08/2023',y:[19.95,20.04,19.84,20.04]},{ x:'06/09/2023',y:[20.16,20.20,20.11,20.17]},{ x:'06/12/2023',y:[20.17,20.27,20.04,20.25]},{ x:'06/13/2023',y:[20.24,20.24,20.04,20.10]},{ x:'06/14/2023',y:[20.10,20.43,20.10,20.30]},{ x:'06/15/2023',y:[20.44,20.52,20.30,20.52]},{ x:'06/16/2023',y:[20.63,20.79,20.63,20.78]},{ x:'06/19/2023',y:[20.82,20.85,20.50,20.58]},{ x:'06/20/2023',y:[20.55,20.58,20.41,20.45]},{ x:'06/21/2023',y:[20.37,20.50,20.32,20.33]},{ x:'06/26/2023',y:[20.12,20.15,19.86,19.91]},{ x:'06/27/2023',y:[19.88,20.07,19.80,20.01]},{ x:'06/28/2023',y:[20.10,20.11,19.98,20.08]},{ x:'06/29/2023',y:[20.05,20.14,19.90,19.94]},{ x:'06/30/2023',y:[19.73,20.10,19.71,20.10]},{ x:'07/03/2023',y:[20.10,20.43,20.01,20.37]},{ x:'07/04/2023',y:[20.33,20.41,20.30,20.38]},{ x:'07/05/2023',y:[20.49,20.49,20.21,20.25]},{ x:'07/06/2023',y:[20.25,20.35,20.02,20.12]},{ x:'07/07/2023',y:[20.11,20.15,20.00,20.13]},{ x:'07/10/2023',y:[20.23,20.42,20.21,20.23]},{ x:'07/11/2023',y:[20.27,20.46,20.27,20.39]},{ x:'07/12/2023',y:[20.46,20.55,20.39,20.45]} ] }], 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());