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:'09/14/2023',y:[380.50,391.50,380.50,391.50]},{ x:'09/15/2023',y:[392.50,394.00,385.00,388.50]},{ x:'09/18/2023',y:[390.00,407.00,390.00,394.50]},{ x:'09/19/2023',y:[396.00,404.50,385.00,386.50]},{ x:'09/20/2023',y:[385.00,387.00,378.50,379.50]},{ x:'09/21/2023',y:[376.00,376.00,367.00,367.50]},{ x:'09/22/2023',y:[366.50,375.00,365.00,374.00]},{ x:'09/25/2023',y:[373.00,384.00,373.00,382.00]},{ x:'09/26/2023',y:[382.00,383.00,375.00,375.00]},{ x:'09/27/2023',y:[371.50,372.50,368.50,369.50]},{ x:'09/28/2023',y:[371.00,372.50,365.00,368.00]},{ x:'10/02/2023',y:[372.50,376.00,372.50,374.00]},{ x:'10/03/2023',y:[374.00,376.50,372.00,372.50]},{ x:'10/04/2023',y:[369.00,377.00,363.00,376.00]},{ x:'10/05/2023',y:[379.00,385.00,379.00,385.00]},{ x:'10/06/2023',y:[391.00,393.00,385.50,386.00]},{ x:'10/11/2023',y:[391.50,391.50,382.50,385.50]},{ x:'10/12/2023',y:[388.50,395.50,387.50,395.00]},{ x:'10/13/2023',y:[389.00,396.50,387.00,389.00]},{ x:'10/18/2023',y:[381.00,381.00,374.00,375.50]},{ x:'10/19/2023',y:[374.50,386.00,371.00,383.50]},{ x:'10/20/2023',y:[381.50,383.50,378.50,383.50]},{ x:'10/23/2023',y:[381.00,384.00,380.00,380.00]},{ x:'10/24/2023',y:[381.00,383.00,377.00,383.00]},{ x:'10/25/2023',y:[385.00,389.00,385.00,386.00]},{ x:'10/26/2023',y:[381.00,385.00,377.00,377.00]},{ x:'10/27/2023',y:[379.50,379.50,375.50,376.00]},{ x:'10/31/2023',y:[377.50,389.00,377.50,380.50]},{ x:'11/01/2023',y:[383.00,387.00,383.00,385.50]},{ x:'11/02/2023',y:[390.00,392.00,387.50,391.00]},{ x:'11/03/2023',y:[391.00,393.00,385.50,386.00]},{ x:'11/06/2023',y:[392.00,394.00,390.00,390.50]},{ x:'11/07/2023',y:[391.50,394.50,391.00,392.00]},{ x:'11/08/2023',y:[373.00,386.50,373.00,384.00]},{ x:'11/09/2023',y:[383.50,391.50,383.00,390.00]},{ x:'11/10/2023',y:[390.00,391.00,383.50,385.50]},{ x:'11/13/2023',y:[387.00,393.00,386.50,392.00]},{ x:'11/14/2023',y:[386.50,386.50,380.00,383.50]},{ x:'11/15/2023',y:[386.50,387.00,382.00,382.50]},{ x:'11/16/2023',y:[384.00,386.50,383.00,383.50]},{ x:'11/17/2023',y:[383.50,388.00,383.50,387.50]},{ x:'11/20/2023',y:[389.50,397.00,388.00,396.50]},{ x:'11/21/2023',y:[399.00,400.00,393.00,396.50]},{ x:'11/22/2023',y:[393.00,394.50,384.00,394.00]},{ x:'11/23/2023',y:[394.00,406.00,394.00,400.00]},{ x:'11/24/2023',y:[400.00,404.00,398.00,401.50]},{ x:'11/27/2023',y:[406.00,412.00,401.50,401.50]},{ x:'11/28/2023',y:[406.50,408.50,397.00,403.00]},{ x:'11/29/2023',y:[405.00,409.50,402.50,406.50]},{ x:'11/30/2023',y:[407.00,407.00,400.00,400.00]},{ x:'12/01/2023',y:[401.00,402.00,393.00,394.50]},{ x:'12/04/2023',y:[396.50,397.50,391.00,391.00]},{ x:'12/05/2023',y:[391.00,397.00,387.50,397.00]},{ x:'12/06/2023',y:[397.00,400.00,392.00,393.00]},{ x:'12/07/2023',y:[396.00,398.50,393.50,393.50]},{ x:'12/08/2023',y:[398.00,399.00,394.50,395.00]},{ x:'12/11/2023',y:[398.00,399.50,395.00,395.00]},{ x:'12/12/2023',y:[398.50,407.50,398.50,403.00]},{ x:'12/18/2023',y:[427.50,430.00,419.00,421.50]},{ x:'12/19/2023',y:[423.50,425.00,410.50,412.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3406 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());