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/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]},{ x:'04/30/2024',y:[378.50,382.50,378.50,380.00]},{ x:'05/02/2024',y:[366.50,372.00,357.50,357.50]},{ x:'05/03/2024',y:[358.50,360.00,353.50,357.00]},{ x:'05/06/2024',y:[351.00,354.50,347.50,350.00]},{ x:'05/07/2024',y:[348.50,354.50,348.50,353.00]},{ x:'05/08/2024',y:[352.50,357.50,351.50,356.50]},{ x:'05/09/2024',y:[354.00,360.00,354.00,355.50]},{ x:'05/10/2024',y:[354.50,354.50,350.00,352.00]},{ x:'05/13/2024',y:[350.00,354.00,349.50,352.00]},{ x:'05/14/2024',y:[349.50,353.00,348.50,349.50]},{ x:'05/15/2024',y:[354.00,361.50,354.00,355.00]},{ x:'05/16/2024',y:[358.50,359.50,355.00,357.50]},{ x:'05/17/2024',y:[353.00,356.50,351.00,351.00]},{ x:'05/20/2024',y:[351.00,354.00,350.00,352.50]},{ x:'05/21/2024',y:[352.50,353.00,349.00,350.00]},{ x:'05/22/2024',y:[352.00,361.00,350.50,358.00]},{ x:'05/23/2024',y:[358.50,363.50,358.50,361.50]},{ x:'05/24/2024',y:[356.50,359.00,355.00,356.00]},{ x:'06/11/2024',y:[354.00,354.50,350.50,350.50]},{ x:'06/12/2024',y:[349.00,354.50,349.00,349.50]},{ x:'06/13/2024',y:[353.50,361.00,351.00,358.00]},{ x:'06/14/2024',y:[358.50,364.00,358.00,361.50]},{ x:'06/17/2024',y:[363.50,371.00,363.00,367.50]},{ x:'06/18/2024',y:[368.50,372.00,367.00,370.00]},{ x:'06/19/2024',y:[371.00,374.50,370.00,370.00]},{ x:'06/20/2024',y:[370.50,377.00,366.00,375.00]},{ x:'06/21/2024',y:[375.00,378.00,371.00,372.50]},{ x:'06/24/2024',y:[372.50,377.00,372.00,375.00]},{ x:'06/25/2024',y:[374.00,375.00,366.00,372.00]},{ x:'06/26/2024',y:[369.50,376.00,369.00,370.50]},{ x:'06/27/2024',y:[366.00,371.50,360.00,370.00]},{ x:'06/28/2024',y:[368.00,375.00,368.00,370.00]},{ x:'07/01/2024',y:[372.00,373.00,368.00,368.00]},{ x:'07/02/2024',y:[367.00,368.00,363.00,365.50]},{ x:'07/03/2024',y:[369.50,373.00,368.50,369.00]},{ x:'07/04/2024',y:[373.00,374.00,370.00,371.00]},{ x:'07/05/2024',y:[372.50,378.00,372.50,374.00]},{ x:'07/12/2024',y:[378.50,381.00,373.00,376.00]},{ x:'07/15/2024',y:[380.50,380.50,374.00,374.50]},{ x:'07/16/2024',y:[374.50,382.50,374.50,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());