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:'12/02/2022',y:[20.59,20.59,20.34,20.34]},{ x:'12/05/2022',y:[20.79,21.06,20.62,20.95]},{ x:'12/06/2022',y:[20.95,21.39,20.91,21.22]},{ x:'12/07/2022',y:[21.22,21.50,21.20,21.49]},{ x:'12/08/2022',y:[21.29,21.40,21.23,21.33]},{ x:'12/09/2022',y:[21.37,21.55,21.27,21.53]},{ x:'12/12/2022',y:[21.53,21.58,21.35,21.36]},{ x:'12/13/2022',y:[21.30,21.42,21.25,21.30]},{ x:'12/14/2022',y:[21.30,21.48,21.25,21.48]},{ x:'12/15/2022',y:[21.47,21.53,21.22,21.36]},{ x:'12/16/2022',y:[21.39,21.60,21.37,21.48]},{ x:'12/19/2022',y:[21.60,21.70,21.35,21.39]},{ x:'12/20/2022',y:[21.30,21.30,20.78,20.78]},{ x:'12/21/2022',y:[20.78,21.04,20.78,20.96]},{ x:'12/22/2022',y:[21.05,21.27,21.03,21.11]},{ x:'12/23/2022',y:[21.11,21.15,20.84,21.02]},{ x:'12/26/2022',y:[21.07,21.14,20.91,21.11]},{ x:'12/27/2022',y:[21.20,21.57,21.20,21.31]},{ x:'12/28/2022',y:[21.32,21.36,21.14,21.30]},{ x:'12/29/2022',y:[21.18,21.24,21.00,21.13]},{ x:'12/30/2022',y:[21.23,21.41,21.23,21.38]},{ x:'01/03/2023',y:[21.42,21.44,21.07,21.40]},{ x:'01/04/2023',y:[21.49,21.52,21.29,21.41]},{ x:'01/05/2023',y:[21.66,22.06,21.66,21.96]},{ x:'01/06/2023',y:[22.10,22.30,22.03,22.17]},{ x:'01/09/2023',y:[22.40,22.48,22.21,22.44]},{ x:'01/10/2023',y:[22.47,22.53,22.38,22.45]},{ x:'01/11/2023',y:[22.54,22.61,22.38,22.58]},{ x:'01/12/2023',y:[22.58,22.63,22.45,22.52]},{ x:'01/13/2023',y:[22.66,22.95,22.64,22.86]},{ x:'01/16/2023',y:[23.10,23.63,23.06,23.56]},{ x:'01/17/2023',y:[23.50,23.58,23.17,23.43]},{ x:'01/30/2023',y:[23.43,23.90,23.43,23.46]},{ x:'01/31/2023',y:[23.42,23.44,23.00,23.03]},{ x:'02/01/2023',y:[23.03,23.07,22.77,22.98]},{ x:'02/02/2023',y:[23.17,23.17,22.78,22.96]},{ x:'02/03/2023',y:[22.78,22.78,22.40,22.49]},{ x:'02/06/2023',y:[22.39,22.39,22.05,22.16]},{ x:'02/07/2023',y:[22.20,22.42,22.20,22.30]},{ x:'02/08/2023',y:[22.35,22.41,22.28,22.28]},{ x:'02/09/2023',y:[22.24,22.58,22.13,22.51]},{ x:'02/10/2023',y:[22.51,22.51,22.30,22.39]},{ x:'02/13/2023',y:[22.39,22.66,22.26,22.66]},{ x:'02/14/2023',y:[22.70,22.75,22.50,22.56]},{ x:'02/15/2023',y:[22.60,22.69,22.44,22.49]},{ x:'02/16/2023',y:[22.57,22.65,22.42,22.63]},{ x:'02/17/2023',y:[22.30,22.41,22.17,22.29]},{ x:'02/20/2023',y:[22.06,22.29,22.03,22.29]},{ x:'02/21/2023',y:[22.44,22.56,22.40,22.46]},{ x:'02/22/2023',y:[22.44,22.47,22.32,22.36]},{ x:'02/23/2023',y:[22.32,22.43,22.18,22.18]},{ x:'02/24/2023',y:[22.16,22.16,21.81,21.90]},{ x:'03/01/2023',y:[21.79,22.32,21.79,22.27]},{ 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]} ] }], 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());