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:'06/12/2023',y:[400.00,402.00,397.00,398.50]},{ x:'06/13/2023',y:[401.50,402.50,395.50,397.00]},{ x:'06/14/2023',y:[398.00,404.00,396.50,401.00]},{ x:'06/15/2023',y:[402.50,403.00,394.00,397.50]},{ x:'06/16/2023',y:[400.00,404.00,397.50,397.50]},{ x:'06/19/2023',y:[398.50,399.50,394.00,398.50]},{ x:'06/20/2023',y:[397.00,400.00,394.50,394.50]},{ x:'06/21/2023',y:[395.50,395.50,389.50,389.50]},{ x:'06/26/2023',y:[390.50,407.50,388.50,399.50]},{ x:'06/27/2023',y:[398.00,404.50,393.00,394.50]},{ x:'06/28/2023',y:[397.50,400.00,394.00,395.50]},{ x:'06/29/2023',y:[397.50,401.00,395.50,397.00]},{ x:'06/30/2023',y:[399.00,399.00,393.50,396.00]},{ x:'07/03/2023',y:[399.50,404.50,399.00,399.50]},{ x:'07/04/2023',y:[399.50,405.00,396.50,404.50]},{ x:'07/05/2023',y:[410.00,412.00,402.00,403.00]},{ x:'07/06/2023',y:[403.00,424.00,403.00,406.50]},{ x:'07/07/2023',y:[408.50,423.00,400.50,415.00]},{ x:'07/10/2023',y:[425.50,432.00,418.00,420.50]},{ x:'07/11/2023',y:[421.50,426.00,413.50,426.00]},{ x:'07/12/2023',y:[434.00,434.00,417.50,417.50]},{ x:'07/13/2023',y:[420.50,424.50,413.00,414.00]},{ x:'07/14/2023',y:[410.50,411.50,400.00,403.00]},{ x:'07/17/2023',y:[406.00,406.50,400.00,401.50]},{ x:'07/18/2023',y:[403.00,405.00,397.00,397.00]},{ x:'07/19/2023',y:[400.50,408.00,400.00,403.00]},{ x:'07/20/2023',y:[403.50,403.50,395.00,397.00]},{ x:'07/21/2023',y:[392.50,393.50,387.00,391.50]},{ x:'07/24/2023',y:[390.00,401.50,388.00,392.50]},{ x:'07/25/2023',y:[396.00,399.50,395.00,395.50]},{ x:'07/26/2023',y:[399.00,399.00,391.00,395.00]},{ x:'07/27/2023',y:[389.00,394.00,387.00,390.50]},{ x:'07/28/2023',y:[394.50,394.50,389.50,391.50]},{ x:'07/31/2023',y:[396.00,399.50,392.00,392.50]},{ x:'08/01/2023',y:[394.50,404.00,394.50,402.00]},{ x:'08/02/2023',y:[400.00,412.50,398.50,406.50]},{ 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]} ] }], 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());