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/26/2024',y:[432.00,435.50,422.00,424.00]},{ x:'04/29/2024',y:[428.50,429.50,422.00,426.50]},{ x:'04/30/2024',y:[426.50,433.00,419.00,423.00]},{ x:'05/02/2024',y:[416.00,417.00,404.00,409.50]},{ x:'05/03/2024',y:[411.00,425.00,396.00,397.00]},{ x:'05/06/2024',y:[399.00,404.00,384.00,392.50]},{ x:'05/07/2024',y:[397.50,401.50,388.00,398.00]},{ x:'05/08/2024',y:[400.00,411.00,399.00,407.50]},{ x:'05/09/2024',y:[412.50,415.00,404.50,415.00]},{ x:'05/10/2024',y:[423.00,426.00,412.00,412.00]},{ x:'05/13/2024',y:[416.50,423.00,415.00,416.50]},{ x:'05/14/2024',y:[415.00,418.00,405.00,408.00]},{ x:'05/15/2024',y:[413.00,413.50,407.00,409.00]},{ x:'05/16/2024',y:[415.00,422.00,408.50,412.50]},{ x:'05/17/2024',y:[412.00,417.00,408.50,415.00]},{ x:'05/20/2024',y:[416.00,417.00,407.00,407.50]},{ x:'05/21/2024',y:[408.50,414.00,408.50,412.00]},{ x:'05/22/2024',y:[413.50,417.00,413.00,416.50]},{ x:'05/23/2024',y:[417.50,417.50,407.50,408.50]},{ x:'05/24/2024',y:[406.50,408.50,402.00,405.50]},{ x:'06/11/2024',y:[432.50,435.00,427.50,431.50]},{ x:'06/12/2024',y:[436.00,439.00,430.00,436.50]},{ x:'06/13/2024',y:[442.00,452.50,437.50,440.00]},{ x:'06/14/2024',y:[440.50,440.50,429.50,434.00]},{ x:'06/17/2024',y:[434.00,434.00,423.50,423.50]},{ x:'06/18/2024',y:[429.00,431.50,423.00,423.50]},{ x:'06/19/2024',y:[424.50,428.00,419.00,420.00]},{ x:'06/20/2024',y:[424.50,430.00,421.00,424.50]},{ x:'06/21/2024',y:[421.00,428.50,418.50,425.50]},{ x:'06/24/2024',y:[425.50,425.50,414.50,415.00]},{ x:'06/25/2024',y:[410.50,430.00,402.00,429.00]},{ x:'06/26/2024',y:[432.50,444.00,429.00,433.50]},{ x:'06/27/2024',y:[432.00,443.00,430.00,430.50]},{ x:'06/28/2024',y:[436.50,450.00,433.00,446.50]},{ x:'07/01/2024',y:[464.00,480.00,456.00,457.00]},{ x:'07/02/2024',y:[455.00,473.00,452.00,463.50]},{ x:'07/03/2024',y:[468.00,486.00,466.50,475.50]},{ x:'07/04/2024',y:[487.00,493.50,476.00,482.50]},{ x:'07/05/2024',y:[481.50,524.00,481.50,514.00]},{ x:'07/12/2024',y:[528.00,530.00,516.00,522.00]},{ x:'07/15/2024',y:[527.00,532.00,517.00,527.00]},{ x:'07/16/2024',y:[525.00,528.00,513.00,516.00]},{ x:'07/17/2024',y:[529.00,531.00,515.00,521.00]},{ x:'07/18/2024',y:[497.50,501.00,475.50,487.00]},{ x:'07/19/2024',y:[488.00,493.00,471.50,471.50]},{ x:'07/22/2024',y:[472.00,474.00,456.00,459.00]},{ x:'07/23/2024',y:[467.00,477.00,465.50,471.00]},{ x:'07/26/2024',y:[457.50,479.00,453.00,473.00]},{ x:'07/29/2024',y:[477.00,480.00,447.50,451.00]},{ x:'07/30/2024',y:[444.00,463.00,444.00,463.00]},{ x:'07/31/2024',y:[458.50,464.00,453.00,456.50]},{ x:'08/01/2024',y:[471.50,491.50,471.50,485.00]},{ x:'08/02/2024',y:[480.00,481.00,463.00,467.50]},{ x:'08/05/2024',y:[447.00,448.50,421.00,427.00]},{ x:'08/06/2024',y:[439.00,454.00,409.00,447.00]},{ x:'08/07/2024',y:[455.00,479.50,449.50,466.00]},{ x:'08/08/2024',y:[460.00,468.00,450.00,450.00]},{ x:'08/09/2024',y:[460.00,482.50,460.00,480.00]},{ x:'08/12/2024',y:[480.00,497.00,480.00,485.50]},{ x:'08/13/2024',y:[482.00,513.00,482.00,512.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3680 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());