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:'02/23/2023',y:[28.73,28.73,28.66,28.66]},{ x:'02/24/2023',y:[28.94,28.94,28.94,28.94]},{ x:'03/01/2023',y:[29.12,29.12,29.12,29.12]},{ x:'03/02/2023',y:[28.99,28.99,28.97,28.98]},{ x:'03/03/2023',y:[28.77,28.77,28.77,28.77]},{ x:'03/06/2023',y:[28.93,28.93,28.93,28.93]},{ x:'03/07/2023',y:[29.20,29.30,29.18,29.30]},{ x:'03/08/2023',y:[29.26,29.26,29.24,29.24]},{ x:'03/09/2023',y:[29.16,29.16,29.13,29.13]},{ x:'03/10/2023',y:[29.30,29.32,29.22,29.22]},{ x:'03/13/2023',y:[29.22,29.29,29.22,29.26]},{ x:'03/14/2023',y:[29.55,29.55,29.47,29.47]},{ x:'03/15/2023',y:[29.48,29.48,29.45,29.45]},{ x:'03/16/2023',y:[29.53,29.57,29.51,29.51]},{ x:'03/17/2023',y:[29.53,29.54,29.53,29.54]},{ x:'03/20/2023',y:[29.57,29.61,29.55,29.59]},{ x:'03/21/2023',y:[29.64,29.65,29.59,29.59]},{ x:'03/22/2023',y:[29.60,29.60,29.53,29.53]},{ x:'03/23/2023',y:[29.46,29.53,29.46,29.50]},{ x:'03/24/2023',y:[29.59,29.59,29.57,29.57]},{ x:'03/27/2023',y:[29.67,29.70,29.67,29.70]},{ x:'03/28/2023',y:[29.56,29.60,29.52,29.60]},{ x:'03/29/2023',y:[29.43,29.49,29.43,29.49]},{ x:'03/30/2023',y:[29.50,29.50,29.48,29.50]},{ x:'03/31/2023',y:[29.53,29.55,29.53,29.55]},{ x:'04/06/2023',y:[30.10,30.17,30.09,30.16]},{ x:'04/07/2023',y:[30.25,30.25,30.25,30.25]},{ x:'04/10/2023',y:[30.17,30.17,30.09,30.13]},{ x:'04/11/2023',y:[30.21,30.21,30.16,30.16]},{ x:'04/12/2023',y:[30.20,30.22,30.20,30.22]},{ x:'04/13/2023',y:[30.22,30.22,30.22,30.22]},{ x:'04/14/2023',y:[30.20,30.20,30.11,30.11]},{ x:'04/17/2023',y:[30.11,30.14,30.11,30.14]},{ x:'04/18/2023',y:[30.02,30.02,29.83,29.84]},{ x:'04/19/2023',y:[29.95,29.95,29.95,29.95]},{ x:'04/20/2023',y:[29.89,29.89,29.89,29.89]},{ x:'04/21/2023',y:[29.54,29.54,29.54,29.54]},{ x:'04/24/2023',y:[29.54,29.54,29.54,29.54]},{ x:'04/25/2023',y:[29.74,29.74,29.74,29.74]},{ x:'04/26/2023',y:[29.96,30.00,29.96,29.98]},{ x:'04/27/2023',y:[30.01,30.01,29.94,29.94]},{ x:'04/28/2023',y:[29.94,29.95,29.94,29.94]},{ x:'05/02/2023',y:[29.94,29.94,29.91,29.91]},{ x:'05/03/2023',y:[29.91,29.91,29.91,29.91]},{ x:'05/04/2023',y:[30.11,30.12,30.11,30.12]},{ x:'05/05/2023',y:[30.05,30.05,30.05,30.05]},{ x:'05/08/2023',y:[29.85,29.85,29.85,29.85]},{ x:'05/09/2023',y:[29.78,29.78,29.77,29.78]},{ x:'05/10/2023',y:[29.76,29.76,29.76,29.76]},{ x:'05/11/2023',y:[29.82,29.88,29.82,29.88]},{ x:'05/12/2023',y:[30.00,30.00,29.95,29.95]},{ x:'05/15/2023',y:[29.91,29.91,29.91,29.91]},{ x:'05/16/2023',y:[29.80,29.80,29.78,29.78]},{ x:'05/17/2023',y:[0.00,0.00,0.00,0.00]},{ x:'05/18/2023',y:[29.61,29.61,29.60,29.60]},{ x:'05/19/2023',y:[29.50,29.50,29.36,29.37]},{ x:'05/22/2023',y:[29.24,29.24,29.24,29.24]},{ x:'05/23/2023',y:[29.16,29.16,29.11,29.12]},{ x:'05/24/2023',y:[29.13,29.13,29.10,29.11]},{ x:'05/25/2023',y:[29.19,29.19,29.18,29.18]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00870b 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());