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:'10/25/2023',y:[4.58,4.59,4.58,4.58]},{ x:'10/26/2023',y:[4.53,4.53,4.47,4.47]},{ x:'10/27/2023',y:[4.50,4.50,4.47,4.47]},{ x:'10/30/2023',y:[4.51,4.51,4.50,4.50]},{ x:'10/31/2023',y:[4.51,4.51,4.45,4.45]},{ x:'11/01/2023',y:[4.48,4.50,4.46,4.50]},{ x:'11/02/2023',y:[4.57,4.60,4.57,4.60]},{ x:'11/03/2023',y:[4.62,4.63,4.62,4.63]},{ x:'11/06/2023',y:[4.71,4.71,4.69,4.69]},{ x:'11/07/2023',y:[4.68,4.70,4.67,4.70]},{ x:'11/08/2023',y:[4.70,4.72,4.70,4.70]},{ x:'11/09/2023',y:[4.71,4.71,4.70,4.71]},{ x:'11/10/2023',y:[4.66,4.66,4.66,4.66]},{ x:'11/13/2023',y:[4.74,4.76,4.73,4.74]},{ x:'11/14/2023',y:[4.76,4.76,4.74,4.74]},{ x:'11/15/2023',y:[4.79,4.81,4.79,4.80]},{ x:'11/16/2023',y:[4.81,4.81,4.78,4.78]},{ x:'11/17/2023',y:[4.81,4.84,4.81,4.84]},{ x:'11/20/2023',y:[4.85,4.88,4.85,4.88]},{ x:'11/21/2023',y:[4.91,4.95,4.91,4.94]},{ x:'11/22/2023',y:[4.91,4.94,4.91,4.92]},{ x:'11/23/2023',y:[4.92,4.96,4.92,4.92]},{ x:'11/24/2023',y:[4.94,4.95,4.92,4.92]},{ x:'11/27/2023',y:[4.93,4.93,4.87,4.87]},{ x:'11/28/2023',y:[4.86,4.89,4.86,4.89]},{ x:'11/29/2023',y:[4.92,4.94,4.92,4.93]},{ x:'11/30/2023',y:[4.94,4.94,4.91,4.93]},{ x:'12/01/2023',y:[4.92,4.94,4.91,4.93]},{ x:'12/04/2023',y:[4.94,4.94,4.91,4.91]},{ x:'12/05/2023',y:[4.87,4.87,4.85,4.85]},{ x:'12/06/2023',y:[4.89,4.89,4.87,4.87]},{ x:'12/07/2023',y:[4.87,4.88,4.85,4.85]},{ x:'12/08/2023',y:[4.90,4.90,4.88,4.88]},{ x:'12/11/2023',y:[4.89,4.91,4.88,4.88]},{ x:'12/12/2023',y:[4.91,4.92,4.89,4.89]},{ x:'12/18/2023',y:[4.99,4.99,4.97,4.97]},{ x:'12/19/2023',y:[4.97,4.97,4.93,4.95]},{ x:'01/10/2024',y:[4.88,4.88,4.88,4.88]},{ x:'01/11/2024',y:[4.88,4.91,4.88,4.90]},{ x:'01/12/2024',y:[4.90,4.92,4.90,4.92]},{ x:'01/15/2024',y:[4.92,4.95,4.92,4.94]},{ x:'01/16/2024',y:[4.92,4.92,4.92,4.92]},{ x:'01/17/2024',y:[4.85,4.85,4.80,4.81]},{ x:'01/18/2024',y:[4.80,4.80,4.78,4.78]},{ x:'01/19/2024',y:[4.80,4.92,4.80,4.92]},{ x:'01/22/2024',y:[5.02,5.04,5.00,5.03]},{ x:'01/23/2024',y:[5.05,5.05,5.03,5.05]},{ x:'01/24/2024',y:[5.06,5.06,5.05,5.05]},{ x:'01/25/2024',y:[5.06,5.10,5.06,5.09]},{ x:'01/26/2024',y:[5.04,5.04,5.02,5.03]},{ x:'01/29/2024',y:[5.03,5.08,5.03,5.08]},{ x:'01/30/2024',y:[5.08,5.12,5.08,5.12]},{ x:'01/31/2024',y:[5.12,5.12,5.06,5.07]},{ x:'02/01/2024',y:[5.04,5.05,5.04,5.05]},{ x:'02/02/2024',y:[5.10,5.10,5.09,5.10]},{ x:'02/05/2024',y:[5.10,5.13,5.10,5.12]},{ x:'02/15/2024',y:[5.12,5.28,5.12,5.25]},{ x:'02/16/2024',y:[5.27,5.29,5.25,5.26]},{ x:'02/19/2024',y:[5.27,5.30,5.27,5.28]},{ x:'02/20/2024',y:[5.28,5.34,5.28,5.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020030 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());