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/17/2023',y:[398.50,404.00,394.50,401.50]},{ x:'04/18/2023',y:[400.50,425.50,397.50,425.00]},{ x:'04/19/2023',y:[438.00,458.00,413.50,413.50]},{ x:'04/20/2023',y:[417.00,420.00,405.00,405.50]},{ x:'04/21/2023',y:[409.00,416.00,395.00,395.50]},{ x:'04/24/2023',y:[396.00,404.50,396.00,397.50]},{ x:'04/25/2023',y:[398.00,402.00,391.50,391.50]},{ x:'04/26/2023',y:[388.50,396.50,388.00,394.00]},{ x:'04/27/2023',y:[394.00,397.00,382.00,391.00]},{ x:'04/28/2023',y:[399.00,404.00,395.50,401.00]},{ x:'05/02/2023',y:[400.50,407.00,398.00,400.00]},{ x:'05/03/2023',y:[399.00,414.00,398.50,406.00]},{ x:'05/04/2023',y:[409.50,412.00,405.00,405.50]},{ x:'05/05/2023',y:[407.00,411.00,403.50,409.00]},{ x:'05/08/2023',y:[412.50,412.50,403.50,404.00]},{ x:'05/09/2023',y:[408.00,408.00,398.00,400.00]},{ x:'05/10/2023',y:[401.00,424.50,401.00,423.00]},{ x:'05/11/2023',y:[423.00,425.00,405.00,405.00]},{ x:'05/12/2023',y:[408.00,408.00,388.00,390.00]},{ x:'05/15/2023',y:[391.50,394.00,383.50,383.50]},{ x:'05/16/2023',y:[388.00,393.00,384.50,390.00]},{ x:'05/17/2023',y:[390.00,404.50,388.00,401.00]},{ x:'05/18/2023',y:[404.00,408.50,392.00,392.00]},{ x:'05/19/2023',y:[395.00,405.00,395.00,399.50]},{ x:'05/22/2023',y:[399.50,404.50,395.00,396.50]},{ x:'05/23/2023',y:[404.00,412.00,400.00,405.50]},{ x:'05/24/2023',y:[405.50,414.00,403.00,403.50]},{ x:'05/25/2023',y:[403.50,405.00,392.50,393.00]},{ x:'05/26/2023',y:[396.00,396.00,387.50,388.00]},{ x:'05/29/2023',y:[388.50,397.50,388.50,395.50]},{ x:'05/30/2023',y:[396.00,398.00,389.50,391.00]},{ x:'05/31/2023',y:[391.50,394.50,391.00,394.50]},{ x:'06/01/2023',y:[396.00,398.50,390.00,398.00]},{ x:'06/02/2023',y:[402.50,406.00,397.50,401.00]},{ x:'06/05/2023',y:[401.50,408.00,399.50,403.00]},{ x:'06/06/2023',y:[403.00,405.50,397.00,398.00]},{ x:'06/07/2023',y:[403.00,412.00,401.00,408.00]},{ x:'06/08/2023',y:[412.00,428.00,410.00,419.00]},{ x:'06/09/2023',y:[421.00,424.00,412.50,414.50]},{ x:'06/12/2023',y:[414.50,414.50,389.50,389.50]},{ x:'06/13/2023',y:[393.00,395.50,380.50,395.50]},{ x:'06/14/2023',y:[395.00,397.50,392.00,393.00]},{ x:'06/15/2023',y:[393.50,403.00,393.00,398.00]},{ x:'06/16/2023',y:[398.00,424.00,398.00,418.00]},{ x:'06/19/2023',y:[419.00,419.00,407.50,412.50]},{ x:'06/20/2023',y:[412.50,419.50,409.00,417.50]},{ x:'06/21/2023',y:[420.00,422.00,402.00,402.50]},{ x:'06/26/2023',y:[402.50,405.50,394.00,402.50]},{ x:'06/27/2023',y:[403.00,417.00,400.00,411.00]},{ x:'06/28/2023',y:[416.50,417.00,404.50,413.00]},{ x:'06/29/2023',y:[415.00,437.00,415.00,437.00]},{ x:'06/30/2023',y:[436.00,437.50,421.50,424.00]},{ x:'07/03/2023',y:[426.00,432.00,420.00,428.00]},{ x:'07/04/2023',y:[435.00,435.00,428.00,429.00]},{ x:'07/05/2023',y:[432.00,432.00,421.00,422.00]},{ x:'07/06/2023',y:[420.00,431.00,419.00,419.00]},{ x:'07/07/2023',y:[419.00,419.00,401.00,403.00]},{ x:'07/10/2023',y:[403.00,410.00,396.00,396.50]},{ x:'07/11/2023',y:[405.00,405.00,394.00,394.00]},{ x:'07/12/2023',y:[393.50,396.50,389.00,392.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3218 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());