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:'01/23/2024',y:[2.69,2.80,2.69,2.80]},{ x:'01/24/2024',y:[2.87,2.87,2.80,2.80]},{ x:'01/25/2024',y:[2.93,2.93,2.85,2.92]},{ x:'01/26/2024',y:[2.89,2.89,2.86,2.86]},{ x:'01/29/2024',y:[2.85,2.86,2.81,2.81]},{ x:'01/30/2024',y:[2.77,2.77,2.75,2.76]},{ x:'01/31/2024',y:[2.74,2.74,2.67,2.68]},{ x:'02/01/2024',y:[2.68,2.75,2.67,2.72]},{ x:'02/02/2024',y:[2.78,2.78,2.73,2.73]},{ x:'02/05/2024',y:[2.67,2.70,2.65,2.70]},{ x:'02/15/2024',y:[2.82,2.84,2.79,2.81]},{ x:'02/16/2024',y:[2.86,2.91,2.86,2.91]},{ x:'02/19/2024',y:[2.92,2.92,2.87,2.87]},{ x:'02/20/2024',y:[2.87,2.87,2.83,2.83]},{ x:'02/21/2024',y:[2.90,3.01,2.90,2.98]},{ x:'02/22/2024',y:[2.93,2.97,2.92,2.97]},{ x:'02/23/2024',y:[2.95,2.96,2.95,2.96]},{ x:'02/26/2024',y:[2.96,2.96,2.95,2.95]},{ x:'02/27/2024',y:[2.97,2.98,2.96,2.98]},{ x:'02/29/2024',y:[2.98,3.01,2.97,2.99]},{ x:'03/01/2024',y:[2.96,3.05,2.96,3.05]},{ x:'03/04/2024',y:[3.07,3.07,3.01,3.03]},{ x:'03/05/2024',y:[2.96,2.98,2.93,2.96]},{ x:'03/06/2024',y:[2.89,3.02,2.89,3.02]},{ x:'03/07/2024',y:[3.01,3.01,2.95,2.97]},{ x:'03/08/2024',y:[2.96,3.00,2.96,2.97]},{ x:'03/11/2024',y:[2.97,3.05,2.97,3.05]},{ x:'03/12/2024',y:[3.09,3.18,3.08,3.17]},{ x:'03/13/2024',y:[3.18,3.24,3.17,3.23]},{ x:'03/14/2024',y:[3.23,3.23,3.16,3.16]},{ x:'03/15/2024',y:[3.09,3.11,3.07,3.07]},{ x:'03/18/2024',y:[3.12,3.15,3.09,3.15]},{ x:'03/19/2024',y:[3.13,3.13,3.07,3.07]},{ x:'03/20/2024',y:[3.09,3.11,3.09,3.11]},{ x:'03/21/2024',y:[3.14,3.18,3.11,3.11]},{ x:'03/22/2024',y:[3.09,3.09,3.01,3.02]},{ x:'03/25/2024',y:[3.04,3.04,3.04,3.04]},{ x:'03/26/2024',y:[3.05,3.05,2.99,2.99]},{ x:'03/27/2024',y:[2.99,2.99,2.97,2.97]},{ x:'03/28/2024',y:[2.95,3.06,2.95,3.06]},{ x:'03/29/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/01/2024',y:[3.01,3.07,3.01,3.06]},{ x:'04/02/2024',y:[3.08,3.12,3.07,3.11]},{ x:'04/03/2024',y:[3.10,3.10,3.06,3.06]},{ x:'04/08/2024',y:[3.01,3.07,3.01,3.05]},{ x:'04/09/2024',y:[3.05,3.05,3.00,3.02]},{ x:'04/10/2024',y:[3.10,3.10,3.09,3.10]},{ x:'04/11/2024',y:[3.06,3.08,3.06,3.08]},{ x:'04/12/2024',y:[3.08,3.08,3.08,3.08]},{ x:'04/15/2024',y:[2.99,3.00,2.98,2.99]},{ x:'04/16/2024',y:[2.95,2.95,2.91,2.93]},{ x:'04/17/2024',y:[2.96,2.96,2.91,2.91]},{ x:'04/18/2024',y:[2.91,2.97,2.91,2.92]},{ x:'04/19/2024',y:[2.87,2.87,2.85,2.87]},{ x:'04/22/2024',y:[2.92,2.94,2.90,2.90]},{ x:'04/23/2024',y:[2.99,2.99,2.97,2.99]},{ x:'04/24/2024',y:[3.03,3.07,3.03,3.07]},{ x:'04/25/2024',y:[3.07,3.14,3.07,3.11]},{ x:'04/26/2024',y:[3.11,3.21,3.11,3.19]},{ x:'04/29/2024',y:[3.24,3.30,3.24,3.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020033 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());