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:'08/04/2023',y:[405.00,406.00,389.00,390.00]},{ x:'08/07/2023',y:[390.50,392.00,381.50,383.00]},{ x:'08/08/2023',y:[394.00,398.00,387.00,389.00]},{ x:'08/09/2023',y:[386.50,398.50,386.50,395.50]},{ x:'08/10/2023',y:[392.50,394.50,383.50,384.50]},{ x:'08/11/2023',y:[388.00,388.00,384.50,385.00]},{ x:'08/14/2023',y:[381.00,382.00,361.50,365.50]},{ x:'08/15/2023',y:[369.50,370.00,363.00,363.50]},{ x:'08/16/2023',y:[358.50,365.50,355.00,360.00]},{ x:'08/17/2023',y:[360.50,379.00,353.50,373.00]},{ x:'08/18/2023',y:[369.50,376.50,365.50,371.00]},{ x:'08/21/2023',y:[371.00,382.00,371.00,376.00]},{ x:'08/22/2023',y:[376.00,380.50,375.00,380.50]},{ x:'08/23/2023',y:[380.00,380.50,375.00,376.00]},{ x:'08/24/2023',y:[378.50,379.50,375.50,377.00]},{ x:'08/25/2023',y:[375.00,377.00,371.00,371.50]},{ x:'08/28/2023',y:[373.00,378.00,371.00,377.50]},{ x:'08/29/2023',y:[381.00,392.00,379.50,386.00]},{ x:'08/30/2023',y:[391.00,392.50,383.00,383.00]},{ x:'08/31/2023',y:[385.50,385.50,380.00,383.00]},{ x:'09/01/2023',y:[383.00,386.00,382.50,383.50]},{ x:'09/04/2023',y:[383.50,392.00,382.50,390.50]},{ x:'09/05/2023',y:[392.00,398.00,392.00,397.00]},{ x:'09/06/2023',y:[400.00,402.50,393.50,399.50]},{ x:'09/07/2023',y:[395.50,396.00,389.50,391.00]},{ x:'09/08/2023',y:[402.00,402.50,389.00,390.00]},{ x:'09/11/2023',y:[390.50,392.50,383.50,383.50]},{ x:'09/12/2023',y:[385.00,391.50,383.00,388.00]},{ x:'09/13/2023',y:[386.00,387.00,376.50,379.00]},{ 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]} ] }], 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());