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:'11/10/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/13/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/14/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/15/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/16/2023',y:[0.81,0.81,0.81,0.81]},{ x:'11/17/2023',y:[0.81,0.84,0.81,0.84]},{ x:'11/20/2023',y:[0.84,0.87,0.84,0.87]},{ x:'11/21/2023',y:[0.86,0.89,0.86,0.89]},{ x:'11/22/2023',y:[0.88,0.88,0.85,0.86]},{ x:'11/23/2023',y:[1.08,1.08,0.98,0.98]},{ x:'11/24/2023',y:[1.03,1.03,1.03,1.03]},{ x:'11/27/2023',y:[1.05,1.05,1.03,1.03]},{ x:'11/28/2023',y:[0.91,0.92,0.91,0.92]},{ x:'11/29/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/30/2023',y:[1.02,1.02,1.02,1.02]},{ x:'12/01/2023',y:[1.01,1.06,1.01,1.05]},{ x:'12/04/2023',y:[1.01,1.03,1.01,1.03]},{ x:'12/05/2023',y:[0.96,0.96,0.96,0.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "709972 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());