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/01/2023',y:[2.90,2.90,2.81,2.81]},{ x:'02/02/2023',y:[2.81,2.88,2.81,2.84]},{ x:'02/03/2023',y:[2.86,2.86,2.80,2.80]},{ x:'02/06/2023',y:[2.80,2.85,2.80,2.82]},{ x:'02/07/2023',y:[2.84,2.84,2.80,2.84]},{ x:'02/08/2023',y:[2.83,2.84,2.83,2.83]},{ x:'02/09/2023',y:[2.83,2.89,2.83,2.87]},{ x:'02/10/2023',y:[2.88,2.91,2.83,2.84]},{ x:'02/13/2023',y:[2.90,2.90,2.82,2.89]},{ x:'02/14/2023',y:[2.87,2.89,2.85,2.85]},{ x:'02/15/2023',y:[2.88,2.88,2.81,2.82]},{ x:'02/16/2023',y:[2.85,2.85,2.79,2.84]},{ x:'02/17/2023',y:[2.83,2.84,2.81,2.83]},{ x:'02/20/2023',y:[2.83,2.95,2.83,2.93]},{ 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]} ] }], 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());