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:[19.98,20.14,19.98,20.12]},{ x:'01/23/2024',y:[20.18,20.45,20.18,20.41]},{ x:'01/24/2024',y:[20.29,20.40,20.24,20.24]},{ x:'01/25/2024',y:[20.37,20.37,20.18,20.20]},{ x:'01/26/2024',y:[20.36,20.36,20.21,20.21]},{ x:'01/29/2024',y:[20.30,20.35,20.23,20.32]},{ x:'01/30/2024',y:[20.40,20.53,20.40,20.53]},{ x:'01/31/2024',y:[20.53,20.59,20.50,20.54]},{ x:'02/01/2024',y:[20.53,20.64,20.46,20.59]},{ x:'02/02/2024',y:[20.69,20.85,20.69,20.85]},{ x:'02/05/2024',y:[20.83,20.83,20.71,20.76]},{ x:'02/15/2024',y:[21.28,21.29,20.99,21.29]},{ x:'02/16/2024',y:[21.20,21.20,21.02,21.03]},{ x:'02/19/2024',y:[21.05,21.07,21.00,21.07]},{ x:'02/20/2024',y:[21.10,21.11,21.03,21.09]},{ x:'02/21/2024',y:[21.08,21.17,21.05,21.08]},{ x:'02/22/2024',y:[21.08,21.28,21.08,21.28]},{ x:'02/23/2024',y:[21.35,21.40,21.14,21.14]},{ x:'02/26/2024',y:[21.15,21.23,21.11,21.23]},{ x:'02/27/2024',y:[21.26,21.33,20.84,21.08]},{ x:'02/29/2024',y:[21.08,21.20,21.08,21.20]},{ x:'03/01/2024',y:[21.30,21.65,21.30,21.63]},{ x:'03/04/2024',y:[21.77,21.90,21.77,21.84]},{ x:'03/05/2024',y:[21.84,21.90,21.74,21.78]},{ x:'03/06/2024',y:[21.78,21.89,21.69,21.85]},{ x:'03/07/2024',y:[21.95,22.13,21.74,21.81]},{ x:'03/08/2024',y:[22.05,22.15,21.41,21.51]},{ x:'03/11/2024',y:[21.46,21.63,21.39,21.57]},{ x:'03/12/2024',y:[21.70,21.95,21.70,21.95]},{ x:'03/13/2024',y:[22.08,22.15,21.75,21.78]},{ x:'03/14/2024',y:[21.82,21.85,21.45,21.67]},{ x:'03/15/2024',y:[21.75,21.90,21.58,21.60]},{ x:'03/18/2024',y:[21.78,21.95,21.71,21.86]},{ x:'03/19/2024',y:[21.97,22.19,21.97,22.16]},{ x:'03/20/2024',y:[22.20,22.38,22.05,22.05]},{ x:'03/21/2024',y:[22.35,22.40,22.14,22.14]},{ x:'03/22/2024',y:[22.14,22.14,21.88,21.91]},{ x:'03/25/2024',y:[22.14,22.18,22.00,22.00]},{ x:'03/26/2024',y:[22.20,22.20,21.61,21.68]},{ x:'03/27/2024',y:[21.76,21.94,21.69,21.90]},{ x:'03/28/2024',y:[21.95,22.12,21.86,21.88]},{ x:'03/29/2024',y:[21.96,22.17,21.95,22.17]},{ x:'04/01/2024',y:[22.25,22.25,22.10,22.17]},{ x:'04/02/2024',y:[22.25,22.30,22.17,22.17]},{ x:'04/03/2024',y:[22.18,22.35,22.17,22.23]},{ x:'04/08/2024',y:[22.27,22.41,22.27,22.30]},{ x:'04/09/2024',y:[22.31,22.31,22.11,22.12]},{ x:'04/10/2024',y:[22.19,22.30,22.19,22.28]},{ x:'04/11/2024',y:[22.10,22.19,22.07,22.17]},{ x:'04/12/2024',y:[22.30,22.45,22.30,22.32]},{ x:'04/15/2024',y:[22.16,22.29,21.97,22.06]},{ x:'04/16/2024',y:[21.90,21.90,21.39,21.45]},{ x:'04/17/2024',y:[21.66,21.72,21.63,21.72]},{ x:'04/18/2024',y:[21.72,21.83,21.72,21.79]},{ x:'04/19/2024',y:[21.57,21.57,20.70,20.93]},{ x:'04/22/2024',y:[20.59,20.80,20.13,20.15]},{ x:'04/23/2024',y:[20.45,20.45,20.32,20.34]},{ x:'04/24/2024',y:[20.54,20.95,20.54,20.95]},{ x:'04/25/2024',y:[20.95,20.95,20.70,20.70]},{ x:'04/26/2024',y:[20.97,21.20,20.94,21.11]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006201 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());