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/28/2022',y:[45.39,45.73,45.28,45.64]},{ x:'12/29/2022',y:[45.50,45.50,44.93,45.00]},{ x:'12/30/2022',y:[46.02,46.24,46.01,46.06]},{ x:'01/03/2023',y:[46.01,46.01,45.17,45.82]},{ x:'01/04/2023',y:[45.58,45.78,45.16,45.27]},{ x:'01/05/2023',y:[45.45,45.45,44.86,44.91]},{ x:'01/06/2023',y:[44.70,44.97,44.44,44.47]},{ x:'01/09/2023',y:[44.93,45.29,44.50,45.15]},{ x:'01/10/2023',y:[45.10,45.15,44.40,44.51]},{ x:'01/11/2023',y:[44.31,44.51,43.75,44.11]},{ x:'01/12/2023',y:[44.28,44.30,43.64,43.67]},{ x:'01/13/2023',y:[43.99,44.27,43.50,43.65]},{ x:'01/16/2023',y:[44.23,44.61,44.14,44.29]},{ x:'01/17/2023',y:[44.25,44.57,43.87,44.40]},{ x:'01/30/2023',y:[43.30,43.30,41.73,42.28]},{ x:'01/31/2023',y:[42.71,42.73,41.96,42.23]},{ x:'02/01/2023',y:[42.90,43.25,42.75,43.22]},{ x:'02/02/2023',y:[42.66,42.66,41.38,42.13]},{ x:'02/03/2023',y:[42.14,42.52,41.82,42.16]},{ x:'02/06/2023',y:[42.53,42.92,42.45,42.50]},{ x:'02/07/2023',y:[42.94,43.19,42.70,42.86]},{ x:'02/08/2023',y:[42.86,43.35,42.71,43.10]},{ x:'02/09/2023',y:[43.38,43.39,42.90,43.30]},{ x:'02/10/2023',y:[43.27,43.27,42.86,43.12]},{ x:'02/13/2023',y:[43.12,43.24,42.62,42.80]},{ x:'02/14/2023',y:[43.13,43.15,42.87,43.07]},{ x:'02/15/2023',y:[43.22,43.60,43.14,43.56]},{ x:'02/16/2023',y:[43.94,44.58,43.94,44.53]},{ x:'02/17/2023',y:[43.80,44.05,43.68,43.93]},{ x:'02/20/2023',y:[43.68,43.90,43.50,43.74]},{ x:'02/21/2023',y:[43.65,43.65,43.17,43.43]},{ x:'02/22/2023',y:[43.01,43.01,42.30,42.35]},{ x:'02/23/2023',y:[42.14,42.14,41.39,41.80]},{ x:'02/24/2023',y:[41.80,41.94,41.57,41.58]},{ x:'03/01/2023',y:[40.88,41.17,40.54,41.09]},{ x:'03/02/2023',y:[41.38,41.38,40.71,40.87]},{ x:'03/03/2023',y:[40.86,41.73,40.86,41.73]},{ x:'03/06/2023',y:[42.00,42.78,42.00,42.73]},{ x:'03/07/2023',y:[42.50,42.86,42.38,42.66]},{ x:'03/08/2023',y:[42.26,42.44,41.99,42.39]},{ x:'03/09/2023',y:[42.55,42.71,42.10,42.31]},{ x:'03/10/2023',y:[41.67,41.67,40.50,40.96]},{ x:'03/13/2023',y:[40.72,41.33,40.55,40.95]},{ x:'03/14/2023',y:[39.96,39.98,39.34,39.39]},{ x:'03/15/2023',y:[40.08,40.08,39.48,39.50]},{ x:'03/16/2023',y:[38.83,39.09,38.40,39.09]},{ x:'03/17/2023',y:[39.38,39.64,39.22,39.26]},{ x:'03/20/2023',y:[39.63,39.63,38.38,38.63]},{ x:'03/21/2023',y:[39.10,39.33,39.01,39.22]},{ x:'03/22/2023',y:[39.60,39.80,39.43,39.50]},{ x:'03/23/2023',y:[39.35,39.62,39.02,39.49]},{ x:'03/24/2023',y:[39.31,39.31,38.71,38.90]},{ x:'03/27/2023',y:[38.70,39.04,38.50,38.82]},{ x:'03/28/2023',y:[38.87,39.15,38.60,38.60]},{ x:'03/29/2023',y:[38.62,39.03,38.62,38.89]},{ x:'03/30/2023',y:[39.16,39.31,39.04,39.14]},{ x:'03/31/2023',y:[39.45,40.04,39.40,39.88]},{ x:'04/06/2023',y:[40.78,41.25,40.78,41.25]},{ x:'04/07/2023',y:[41.31,41.59,41.31,41.52]},{ x:'04/10/2023',y:[41.57,41.57,41.29,41.31]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00653l 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());