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/12/2024',y:[376.50,379.00,373.00,373.00]},{ x:'01/15/2024',y:[372.50,376.50,372.50,375.00]},{ x:'01/16/2024',y:[372.50,373.00,369.50,369.50]},{ x:'01/17/2024',y:[362.50,366.00,351.00,351.00]},{ x:'01/18/2024',y:[352.00,353.50,331.00,333.00]},{ x:'01/19/2024',y:[337.50,343.00,333.00,342.00]},{ x:'01/22/2024',y:[344.00,352.50,344.00,351.00]},{ x:'01/23/2024',y:[351.00,354.50,348.00,350.00]},{ x:'01/24/2024',y:[350.00,356.00,349.50,352.00]},{ x:'01/25/2024',y:[353.50,353.50,345.00,345.00]},{ x:'01/26/2024',y:[343.50,346.00,341.00,343.00]},{ x:'01/29/2024',y:[343.00,348.00,343.00,348.00]},{ x:'01/30/2024',y:[348.00,349.00,343.00,343.50]},{ x:'01/31/2024',y:[343.00,343.00,337.00,337.50]},{ x:'02/01/2024',y:[337.00,338.00,333.50,337.00]},{ x:'02/02/2024',y:[341.00,343.50,338.50,340.00]},{ x:'02/05/2024',y:[343.00,343.00,334.00,335.00]},{ x:'02/15/2024',y:[336.50,341.50,335.00,336.00]},{ x:'02/16/2024',y:[340.00,357.50,339.00,353.00]},{ x:'02/19/2024',y:[350.50,355.50,350.00,354.50]},{ x:'02/20/2024',y:[354.50,354.50,350.00,350.50]},{ x:'02/21/2024',y:[352.00,364.00,351.00,351.00]},{ x:'02/22/2024',y:[353.00,353.50,346.00,347.50]},{ x:'02/23/2024',y:[347.50,349.50,345.00,345.00]},{ x:'02/26/2024',y:[347.50,357.50,347.50,355.50]},{ x:'02/27/2024',y:[359.50,363.00,355.50,355.50]},{ x:'02/29/2024',y:[355.50,362.00,351.50,362.00]},{ x:'03/01/2024',y:[373.00,388.00,372.50,383.00]},{ x:'03/04/2024',y:[388.50,421.00,382.00,421.00]},{ x:'03/05/2024',y:[435.00,458.00,411.00,414.00]},{ x:'03/06/2024',y:[418.00,441.00,417.00,425.50]},{ x:'03/07/2024',y:[430.00,433.50,403.50,404.50]},{ x:'03/08/2024',y:[408.00,408.50,384.00,384.00]},{ x:'03/11/2024',y:[384.00,390.50,377.00,377.50]},{ x:'03/12/2024',y:[379.00,390.00,379.00,390.00]},{ x:'03/13/2024',y:[386.50,391.50,378.50,378.50]},{ x:'03/14/2024',y:[384.00,387.00,377.00,385.00]},{ x:'03/15/2024',y:[384.00,389.50,380.00,380.50]},{ x:'03/18/2024',y:[380.50,386.00,378.00,384.00]},{ x:'03/19/2024',y:[384.00,387.00,379.50,380.00]},{ x:'03/20/2024',y:[381.00,398.00,380.50,395.50]},{ x:'03/21/2024',y:[397.50,404.00,387.50,387.50]},{ x:'03/22/2024',y:[387.50,391.50,384.50,389.00]},{ x:'03/25/2024',y:[388.50,394.50,386.00,387.00]},{ x:'03/26/2024',y:[387.50,390.00,376.50,376.50]},{ x:'03/27/2024',y:[376.50,385.00,376.50,385.00]},{ x:'03/28/2024',y:[388.00,390.50,384.50,386.50]},{ x:'03/29/2024',y:[389.50,389.50,380.00,383.50]},{ x:'04/11/2024',y:[421.00,426.00,409.00,409.50]},{ x:'04/12/2024',y:[411.00,412.00,395.50,396.00]},{ x:'04/15/2024',y:[397.00,397.00,387.00,389.00]},{ x:'04/16/2024',y:[386.50,388.00,373.50,377.00]},{ x:'04/17/2024',y:[385.00,397.50,381.00,389.50]},{ x:'04/18/2024',y:[390.00,390.00,385.00,385.00]},{ x:'04/19/2024',y:[381.50,385.00,360.00,378.00]},{ x:'04/22/2024',y:[378.00,382.00,370.00,370.00]},{ x:'04/23/2024',y:[373.00,378.00,370.00,375.00]},{ x:'04/24/2024',y:[377.50,384.00,377.50,384.00]},{ x:'04/25/2024',y:[389.00,389.00,381.00,383.00]},{ x:'04/26/2024',y:[385.50,398.00,385.00,396.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8478 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());