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/30/2022',y:[43.21,43.36,43.15,43.32]},{ x:'01/03/2023',y:[43.22,43.34,43.03,43.31]},{ x:'01/04/2023',y:[43.01,43.14,43.00,43.12]},{ x:'01/05/2023',y:[43.15,43.20,42.99,43.16]},{ x:'01/06/2023',y:[42.70,42.81,42.67,42.68]},{ x:'01/09/2023',y:[43.70,43.74,43.53,43.69]},{ x:'01/10/2023',y:[43.55,43.58,43.38,43.45]},{ x:'01/11/2023',y:[43.95,44.00,43.90,43.97]},{ x:'01/12/2023',y:[44.55,44.77,44.55,44.70]},{ x:'01/13/2023',y:[44.90,44.90,44.63,44.73]},{ x:'01/16/2023',y:[44.87,45.10,44.83,45.03]},{ x:'01/17/2023',y:[45.03,45.03,44.82,44.82]},{ x:'01/30/2023',y:[47.23,47.24,46.87,46.88]},{ x:'01/31/2023',y:[46.31,46.31,45.80,45.90]},{ x:'02/01/2023',y:[46.56,46.56,46.39,46.39]},{ x:'02/02/2023',y:[47.23,47.70,47.23,47.46]},{ x:'02/03/2023',y:[48.09,48.16,47.98,48.06]},{ x:'02/06/2023',y:[48.06,48.23,48.00,48.00]},{ x:'02/07/2023',y:[48.06,48.19,48.06,48.12]},{ x:'02/08/2023',y:[48.86,49.13,48.86,49.11]},{ x:'02/09/2023',y:[48.55,48.55,48.30,48.46]},{ x:'02/10/2023',y:[47.93,47.93,47.80,47.85]},{ x:'02/13/2023',y:[47.64,47.71,47.53,47.71]},{ x:'02/14/2023',y:[48.38,48.50,48.34,48.43]},{ x:'02/15/2023',y:[48.79,48.85,48.66,48.70]},{ x:'02/16/2023',y:[49.45,49.63,49.45,49.48]},{ x:'02/17/2023',y:[48.40,48.49,48.31,48.38]},{ x:'02/20/2023',y:[48.19,48.32,48.18,48.30]},{ x:'02/21/2023',y:[48.06,48.20,48.01,48.16]},{ x:'02/22/2023',y:[47.36,47.47,47.35,47.39]},{ x:'02/23/2023',y:[47.57,47.70,47.53,47.58]},{ x:'02/24/2023',y:[47.59,47.77,47.50,47.74]},{ x:'03/01/2023',y:[48.05,48.05,47.16,47.53]},{ x:'03/02/2023',y:[47.22,47.22,46.68,46.86]},{ x:'03/03/2023',y:[47.44,47.50,47.31,47.50]},{ x:'03/06/2023',y:[48.25,48.63,48.25,48.60]},{ x:'03/07/2023',y:[48.60,48.70,48.52,48.68]},{ x:'03/08/2023',y:[48.07,48.32,48.05,48.25]},{ x:'03/09/2023',y:[48.53,48.53,48.31,48.48]},{ x:'03/10/2023',y:[47.69,47.69,47.42,47.50]},{ x:'03/13/2023',y:[47.74,47.74,47.43,47.62]},{ x:'03/14/2023',y:[47.37,47.37,47.14,47.20]},{ x:'03/15/2023',y:[47.95,48.24,47.95,48.10]},{ x:'03/16/2023',y:[48.53,48.71,48.53,48.62]},{ x:'03/17/2023',y:[49.36,49.73,49.34,49.61]},{ x:'03/20/2023',y:[49.53,49.53,49.27,49.46]},{ x:'03/21/2023',y:[49.50,49.61,49.43,49.57]},{ x:'03/22/2023',y:[49.82,50.25,49.82,50.20]},{ x:'03/23/2023',y:[49.27,49.39,49.20,49.30]},{ x:'03/24/2023',y:[49.86,49.89,49.60,49.89]},{ x:'03/27/2023',y:[50.00,50.30,50.00,50.25]},{ x:'03/28/2023',y:[49.85,49.85,49.55,49.68]},{ x:'03/29/2023',y:[49.56,49.73,49.51,49.71]},{ x:'03/30/2023',y:[50.25,50.50,50.25,50.50]},{ x:'03/31/2023',y:[50.95,51.15,50.90,51.05]},{ x:'04/06/2023',y:[50.95,50.95,50.60,50.90]},{ x:'04/07/2023',y:[51.20,51.40,51.15,51.35]},{ x:'04/10/2023',y:[51.30,51.30,51.10,51.20]},{ x:'04/11/2023',y:[51.20,51.30,51.10,51.20]},{ x:'04/12/2023',y:[51.05,51.05,50.90,51.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00662 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());