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:[342.00,344.00,337.50,340.50]},{ x:'01/24/2024',y:[341.50,342.50,338.00,338.50]},{ x:'01/25/2024',y:[341.00,341.00,336.00,336.00]},{ x:'01/26/2024',y:[336.00,339.00,334.50,337.00]},{ x:'01/29/2024',y:[335.00,340.00,333.50,338.00]},{ x:'01/30/2024',y:[339.50,341.50,337.00,337.50]},{ x:'01/31/2024',y:[340.00,340.00,336.00,337.50]},{ x:'02/01/2024',y:[339.50,351.50,339.50,350.50]},{ x:'02/02/2024',y:[352.50,365.50,352.00,365.00]},{ x:'02/05/2024',y:[369.50,372.00,363.00,370.50]},{ x:'02/15/2024',y:[400.00,400.00,373.00,383.50]},{ x:'02/16/2024',y:[380.00,381.50,376.00,380.50]},{ x:'02/19/2024',y:[384.00,390.00,384.00,390.00]},{ x:'02/20/2024',y:[384.50,391.00,383.00,391.00]},{ x:'02/21/2024',y:[388.00,392.00,385.00,392.00]},{ x:'02/22/2024',y:[392.00,392.00,386.50,387.00]},{ x:'02/23/2024',y:[385.50,387.00,379.50,380.00]},{ x:'02/26/2024',y:[378.50,381.50,377.00,381.50]},{ x:'02/27/2024',y:[380.00,381.50,373.00,378.50]},{ x:'02/29/2024',y:[380.00,390.00,377.00,390.00]},{ x:'03/01/2024',y:[387.50,394.00,386.00,392.00]},{ x:'03/04/2024',y:[389.00,390.50,387.00,387.00]},{ x:'03/05/2024',y:[387.00,394.00,385.50,389.50]},{ x:'03/06/2024',y:[389.00,392.50,386.50,390.50]},{ x:'03/07/2024',y:[398.00,400.00,389.00,397.00]},{ x:'03/08/2024',y:[391.00,396.00,388.00,393.00]},{ x:'03/11/2024',y:[400.00,432.00,396.50,406.50]},{ x:'03/12/2024',y:[406.50,409.50,403.50,404.00]},{ x:'03/13/2024',y:[396.00,398.00,392.00,395.00]},{ x:'03/14/2024',y:[395.00,395.00,389.50,393.00]},{ x:'03/15/2024',y:[388.00,392.50,387.50,392.00]},{ x:'03/18/2024',y:[393.00,398.00,388.50,389.50]},{ x:'03/19/2024',y:[388.00,395.00,384.00,392.50]},{ x:'03/20/2024',y:[392.00,397.50,391.50,395.00]},{ x:'03/21/2024',y:[398.00,402.00,395.00,400.00]},{ x:'03/22/2024',y:[396.50,401.00,396.00,400.00]},{ x:'03/25/2024',y:[400.00,406.50,399.00,400.50]},{ x:'03/26/2024',y:[400.00,412.00,400.00,404.50]},{ x:'03/27/2024',y:[400.50,408.00,400.50,406.00]},{ x:'03/28/2024',y:[404.00,408.00,402.50,407.00]},{ x:'03/29/2024',y:[406.00,410.00,402.00,404.00]},{ x:'04/01/2024',y:[406.00,406.50,398.00,400.00]},{ x:'04/02/2024',y:[398.50,401.00,393.50,395.50]},{ x:'04/03/2024',y:[395.50,395.50,387.50,390.50]},{ x:'04/08/2024',y:[386.00,390.50,380.50,389.00]},{ x:'04/09/2024',y:[387.00,394.50,387.00,394.50]},{ x:'04/10/2024',y:[392.00,393.50,383.50,384.00]},{ x:'04/11/2024',y:[383.50,386.00,382.50,386.00]},{ x:'04/12/2024',y:[379.50,383.50,378.00,378.50]},{ x:'04/15/2024',y:[381.00,381.00,374.00,374.50]},{ x:'04/16/2024',y:[371.50,372.00,364.00,365.00]},{ x:'04/17/2024',y:[368.50,373.00,366.00,371.00]},{ x:'04/18/2024',y:[369.50,373.00,364.00,372.00]},{ x:'04/19/2024',y:[365.50,369.00,359.50,365.00]},{ x:'04/22/2024',y:[371.50,371.50,365.50,368.50]},{ x:'04/23/2024',y:[375.00,375.00,363.50,366.50]},{ x:'04/24/2024',y:[370.00,373.50,369.50,373.50]},{ x:'04/25/2024',y:[375.00,375.00,364.50,365.00]},{ x:'04/26/2024',y:[366.50,373.00,366.50,368.00]},{ x:'04/29/2024',y:[371.00,383.50,371.00,380.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2395 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());