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:'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]},{ x:'04/29/2024',y:[403.00,404.00,396.50,400.00]},{ x:'04/30/2024',y:[398.00,398.50,389.50,391.00]},{ x:'05/02/2024',y:[391.00,392.00,386.00,388.50]},{ x:'05/03/2024',y:[393.00,393.00,383.00,383.00]},{ x:'05/06/2024',y:[385.00,395.00,385.00,395.00]},{ x:'05/07/2024',y:[388.00,388.00,368.00,374.50]},{ x:'05/08/2024',y:[375.00,378.50,372.00,373.00]},{ x:'05/09/2024',y:[373.00,373.00,363.00,363.00]},{ x:'05/10/2024',y:[365.00,369.00,363.00,364.00]},{ x:'05/13/2024',y:[365.00,367.00,362.50,363.00]},{ x:'05/14/2024',y:[367.00,371.50,365.00,365.50]},{ x:'05/15/2024',y:[368.00,368.00,362.00,362.00]},{ x:'05/16/2024',y:[366.50,367.00,363.50,365.50]},{ x:'05/17/2024',y:[366.00,369.50,363.50,368.00]},{ x:'05/20/2024',y:[371.00,390.00,368.50,386.00]},{ x:'05/21/2024',y:[385.00,387.00,373.50,374.50]},{ x:'05/22/2024',y:[380.00,388.00,377.00,379.50]},{ x:'05/23/2024',y:[375.50,380.00,373.00,374.00]},{ x:'05/24/2024',y:[376.00,385.50,373.50,378.50]},{ x:'06/11/2024',y:[379.50,380.00,369.00,369.00]},{ x:'06/12/2024',y:[371.00,371.00,367.50,370.50]},{ x:'06/13/2024',y:[372.50,374.00,369.50,372.00]},{ x:'06/14/2024',y:[372.00,381.00,372.00,378.50]},{ x:'06/17/2024',y:[380.50,381.00,373.50,376.50]},{ x:'06/18/2024',y:[377.00,379.50,375.00,377.50]},{ x:'06/19/2024',y:[379.00,380.00,375.00,375.00]},{ x:'06/20/2024',y:[376.50,386.50,376.50,383.00]},{ x:'06/21/2024',y:[383.00,386.00,380.50,383.50]},{ x:'06/24/2024',y:[386.50,404.00,386.00,387.00]},{ x:'06/25/2024',y:[393.00,397.00,378.00,381.00]},{ x:'06/26/2024',y:[383.00,392.00,382.00,386.50]},{ x:'06/27/2024',y:[388.00,394.00,381.00,390.00]},{ x:'06/28/2024',y:[392.50,405.50,388.00,400.50]},{ x:'07/01/2024',y:[408.00,418.00,403.00,412.50]},{ x:'07/02/2024',y:[413.50,415.50,402.00,415.50]} ] }], 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());