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/21/2023',y:[2.96,2.99,2.94,2.96]},{ x:'02/22/2023',y:[2.90,2.90,2.88,2.88]},{ x:'02/23/2023',y:[2.87,2.96,2.87,2.96]},{ x:'02/24/2023',y:[2.91,2.99,2.82,2.90]},{ x:'03/01/2023',y:[2.89,2.95,2.88,2.88]},{ x:'03/02/2023',y:[2.90,2.92,2.83,2.84]},{ x:'03/03/2023',y:[2.84,2.88,2.84,2.87]},{ x:'03/06/2023',y:[2.87,2.92,2.87,2.87]},{ x:'03/07/2023',y:[2.92,2.92,2.85,2.86]},{ x:'03/08/2023',y:[2.86,2.90,2.86,2.87]},{ x:'03/09/2023',y:[2.90,2.90,2.87,2.87]},{ x:'03/10/2023',y:[2.92,2.92,2.87,2.87]},{ x:'03/13/2023',y:[2.88,2.88,2.87,2.87]},{ x:'03/14/2023',y:[2.87,2.89,2.87,2.89]},{ x:'03/15/2023',y:[2.99,3.00,2.95,2.95]},{ x:'03/16/2023',y:[2.88,2.93,2.88,2.90]},{ x:'03/17/2023',y:[2.91,2.96,2.91,2.92]},{ x:'03/20/2023',y:[2.92,2.95,2.89,2.89]},{ x:'03/21/2023',y:[2.95,2.95,2.90,2.93]},{ x:'03/22/2023',y:[2.95,2.95,2.92,2.92]},{ x:'03/23/2023',y:[2.92,2.93,2.91,2.92]},{ x:'03/24/2023',y:[2.92,2.93,2.91,2.92]},{ x:'03/27/2023',y:[2.93,2.93,2.92,2.93]},{ x:'03/28/2023',y:[2.93,2.94,2.93,2.94]},{ x:'03/29/2023',y:[2.94,2.94,2.93,2.94]},{ x:'03/30/2023',y:[2.95,2.96,2.94,2.95]},{ x:'03/31/2023',y:[3.24,3.24,3.17,3.23]},{ x:'04/06/2023',y:[3.45,3.55,3.45,3.55]},{ x:'04/07/2023',y:[3.55,3.90,3.55,3.88]},{ x:'04/10/2023',y:[3.89,4.26,3.89,4.26]},{ x:'04/11/2023',y:[4.60,4.65,4.22,4.30]},{ x:'04/12/2023',y:[4.33,4.48,3.87,3.99]},{ x:'04/13/2023',y:[3.94,4.00,3.60,3.85]},{ x:'04/14/2023',y:[3.85,3.94,3.60,3.90]},{ x:'04/17/2023',y:[3.91,4.29,3.90,4.27]},{ x:'04/18/2023',y:[4.28,4.65,3.97,4.10]},{ x:'04/19/2023',y:[3.96,4.15,3.93,4.00]},{ x:'04/20/2023',y:[4.10,4.10,3.91,3.99]},{ x:'04/21/2023',y:[3.90,3.99,3.85,3.96]},{ x:'04/24/2023',y:[3.96,4.18,3.86,4.03]},{ x:'04/25/2023',y:[3.98,4.03,3.85,3.88]},{ x:'04/26/2023',y:[3.87,3.93,3.87,3.92]},{ x:'04/27/2023',y:[3.89,4.02,3.89,4.01]},{ x:'04/28/2023',y:[4.13,4.17,4.06,4.12]},{ x:'05/02/2023',y:[4.12,4.12,3.96,4.01]},{ x:'05/03/2023',y:[3.76,3.76,3.61,3.61]},{ x:'05/04/2023',y:[3.60,3.60,3.25,3.50]},{ x:'05/05/2023',y:[3.46,3.55,3.46,3.50]},{ x:'05/08/2023',y:[3.60,3.80,3.60,3.61]},{ x:'05/09/2023',y:[3.65,3.72,3.60,3.60]},{ x:'05/10/2023',y:[3.60,3.64,3.45,3.54]},{ x:'05/11/2023',y:[3.47,3.52,3.40,3.40]},{ x:'05/12/2023',y:[3.35,3.35,3.06,3.20]},{ x:'05/15/2023',y:[3.07,3.10,3.00,3.05]},{ x:'05/16/2023',y:[3.23,3.35,3.16,3.35]},{ x:'05/17/2023',y:[3.22,3.50,3.22,3.34]},{ x:'05/18/2023',y:[3.30,3.35,3.20,3.23]},{ x:'05/19/2023',y:[3.15,3.38,3.15,3.35]},{ x:'05/22/2023',y:[3.45,3.45,3.35,3.39]},{ x:'05/23/2023',y:[3.38,3.39,3.25,3.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2443 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());