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/22/2023',y:[0.00,0.00,0.00,0.00]},{ x:'11/23/2023',y:[2.47,2.60,2.47,2.60]},{ x:'11/24/2023',y:[2.12,2.14,2.12,2.12]},{ x:'11/27/2023',y:[2.33,2.46,2.33,2.46]},{ x:'11/28/2023',y:[2.61,2.61,2.61,2.61]},{ x:'11/29/2023',y:[2.56,2.68,2.56,2.68]},{ x:'11/30/2023',y:[3.00,3.30,3.00,3.30]},{ x:'12/01/2023',y:[3.21,3.52,3.21,3.52]},{ x:'12/04/2023',y:[3.41,3.51,3.41,3.51]},{ x:'12/05/2023',y:[2.87,2.94,2.52,2.52]},{ x:'12/06/2023',y:[2.59,2.79,2.58,2.58]},{ x:'12/07/2023',y:[2.68,2.68,2.35,2.48]},{ x:'12/08/2023',y:[2.68,3.09,2.68,3.02]},{ x:'12/11/2023',y:[2.90,2.90,2.72,2.72]},{ x:'12/12/2023',y:[0.00,0.00,0.00,0.00]},{ x:'12/18/2023',y:[2.39,2.63,2.27,2.63]},{ x:'12/19/2023',y:[2.74,2.74,2.73,2.73]},{ x:'01/10/2024',y:[2.55,2.55,2.28,2.28]},{ x:'01/11/2024',y:[2.19,2.24,2.19,2.24]},{ x:'01/12/2024',y:[2.28,2.28,2.25,2.25]},{ x:'01/15/2024',y:[2.27,2.46,2.27,2.46]},{ x:'01/16/2024',y:[2.64,2.65,2.64,2.65]},{ x:'01/17/2024',y:[3.55,4.70,3.55,4.70]},{ x:'01/18/2024',y:[3.85,3.85,3.82,3.82]},{ x:'01/19/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/22/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/23/2024',y:[3.96,3.96,3.96,3.96]},{ x:'01/24/2024',y:[4.27,4.99,4.27,4.94]},{ x:'01/25/2024',y:[4.98,4.98,4.60,4.60]},{ x:'01/26/2024',y:[4.41,4.41,4.16,4.16]},{ x:'01/29/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/30/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/31/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/01/2024',y:[4.96,4.96,4.87,4.87]},{ x:'02/02/2024',y:[4.48,4.48,4.48,4.48]},{ x:'02/05/2024',y:[0.00,0.00,0.00,0.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "710509 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());