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:'04/29/2024',y:[320.50,323.50,317.00,321.00]},{ x:'04/30/2024',y:[320.00,326.00,318.00,320.50]},{ x:'05/02/2024',y:[309.50,313.50,305.00,309.50]},{ x:'05/03/2024',y:[319.50,333.50,319.00,327.50]},{ x:'05/06/2024',y:[336.00,336.00,319.50,322.00]},{ x:'05/07/2024',y:[322.50,326.50,320.00,326.00]},{ x:'05/08/2024',y:[325.00,326.50,320.00,321.00]},{ x:'05/09/2024',y:[320.00,326.50,320.00,323.00]},{ x:'05/10/2024',y:[321.50,323.50,318.00,319.00]},{ x:'05/13/2024',y:[316.00,318.00,313.50,316.50]},{ x:'05/14/2024',y:[318.00,320.00,315.00,316.00]},{ x:'05/15/2024',y:[319.00,324.00,317.50,319.00]},{ x:'05/16/2024',y:[322.00,324.00,319.00,320.00]},{ x:'05/17/2024',y:[320.00,326.00,319.00,322.50]},{ x:'05/20/2024',y:[322.50,324.00,317.00,318.00]},{ x:'05/21/2024',y:[318.50,322.50,318.00,318.50]},{ x:'05/22/2024',y:[321.00,329.00,319.00,327.50]},{ x:'05/23/2024',y:[327.50,335.00,325.50,329.50]},{ x:'05/24/2024',y:[327.00,332.50,325.00,328.00]},{ x:'06/11/2024',y:[335.00,343.00,332.00,340.50]},{ x:'06/12/2024',y:[342.50,351.50,342.50,344.00]},{ x:'06/13/2024',y:[348.00,354.00,341.50,353.50]},{ x:'06/14/2024',y:[357.00,357.50,350.00,353.50]},{ x:'06/17/2024',y:[358.50,362.50,349.00,352.00]},{ x:'06/18/2024',y:[345.50,351.50,343.50,348.00]},{ x:'06/19/2024',y:[358.00,371.00,356.50,367.00]},{ x:'06/20/2024',y:[368.50,371.00,364.00,369.50]},{ x:'06/21/2024',y:[367.00,387.50,363.00,383.00]},{ x:'06/24/2024',y:[378.00,382.00,372.50,376.50]},{ x:'06/25/2024',y:[375.00,391.50,369.50,387.00]},{ x:'06/26/2024',y:[387.00,392.50,383.50,385.00]},{ x:'06/27/2024',y:[383.00,387.50,381.00,386.50]},{ x:'06/28/2024',y:[388.00,396.00,387.00,387.50]},{ x:'07/01/2024',y:[388.50,396.00,385.00,390.50]},{ x:'07/02/2024',y:[384.00,388.50,382.00,383.00]},{ x:'07/03/2024',y:[383.00,386.00,377.00,379.50]},{ x:'07/04/2024',y:[382.00,388.00,379.50,382.00]},{ x:'07/05/2024',y:[385.00,392.50,384.00,387.00]},{ x:'07/12/2024',y:[423.50,428.00,420.00,422.00]},{ x:'07/15/2024',y:[421.00,424.00,412.00,415.00]},{ x:'07/16/2024',y:[408.00,417.50,408.00,412.50]},{ x:'07/17/2024',y:[410.00,415.00,407.00,411.00]},{ x:'07/18/2024',y:[399.00,405.00,396.00,401.50]},{ x:'07/19/2024',y:[396.00,403.00,393.50,399.00]},{ x:'07/22/2024',y:[394.50,396.00,372.00,373.50]},{ x:'07/23/2024',y:[380.00,391.00,378.50,389.50]},{ x:'07/26/2024',y:[371.00,390.00,369.00,388.00]},{ x:'07/29/2024',y:[397.50,405.00,393.00,396.00]},{ x:'07/30/2024',y:[396.00,400.00,389.00,400.00]},{ x:'07/31/2024',y:[403.00,418.00,400.00,414.50]},{ x:'08/01/2024',y:[423.00,427.00,415.00,424.00]},{ x:'08/02/2024',y:[392.50,405.00,389.00,390.00]},{ x:'08/05/2024',y:[351.00,360.00,351.00,351.00]},{ x:'08/06/2024',y:[370.00,377.00,347.00,373.00]},{ x:'08/07/2024',y:[375.00,389.00,373.50,379.50]},{ x:'08/08/2024',y:[380.00,386.50,373.50,377.00]},{ x:'08/09/2024',y:[383.50,397.50,383.50,387.50]},{ x:'08/12/2024',y:[404.00,407.00,395.00,399.00]},{ x:'08/13/2024',y:[405.50,406.00,396.00,399.50]},{ x:'08/14/2024',y:[405.00,412.50,402.50,409.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2308 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());