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:'03/18/2024',y:[300.00,322.50,293.00,322.50]},{ x:'03/19/2024',y:[319.00,352.00,317.00,346.50]},{ x:'03/20/2024',y:[367.00,367.00,323.50,357.00]},{ x:'03/21/2024',y:[350.00,392.50,341.50,392.50]},{ x:'03/22/2024',y:[393.50,414.50,375.50,400.50]},{ x:'03/25/2024',y:[399.50,420.50,390.00,414.50]},{ x:'03/26/2024',y:[386.50,418.00,386.50,395.00]},{ x:'03/27/2024',y:[394.50,394.50,386.00,390.00]},{ x:'03/28/2024',y:[395.50,395.50,381.00,385.00]},{ x:'03/29/2024',y:[387.00,387.00,381.50,384.50]},{ x:'04/01/2024',y:[398.50,422.50,398.50,415.00]},{ x:'04/02/2024',y:[420.00,440.00,420.00,423.00]},{ x:'04/03/2024',y:[410.00,435.00,410.00,435.00]},{ x:'04/08/2024',y:[435.00,435.00,408.00,408.00]},{ x:'04/09/2024',y:[408.00,410.00,405.00,405.00]},{ x:'04/10/2024',y:[404.00,445.00,402.00,441.00]},{ x:'04/11/2024',y:[420.50,435.50,405.00,416.50]},{ x:'04/12/2024',y:[439.00,458.00,434.00,458.00]},{ x:'04/15/2024',y:[480.00,488.50,437.00,479.00]},{ x:'04/16/2024',y:[481.00,481.00,456.00,460.00]},{ x:'04/17/2024',y:[466.00,506.00,466.00,478.00]},{ x:'04/18/2024',y:[466.50,494.50,461.50,466.50]},{ x:'04/19/2024',y:[458.00,458.00,420.00,420.50]},{ x:'04/22/2024',y:[414.00,433.50,378.50,378.50]},{ x:'04/23/2024',y:[388.00,397.00,360.00,366.00]},{ x:'04/24/2024',y:[390.00,402.50,380.00,402.50]},{ x:'04/25/2024',y:[402.50,417.50,380.50,383.50]},{ x:'04/26/2024',y:[403.00,421.50,398.00,421.50]},{ x:'04/29/2024',y:[429.00,448.00,412.50,413.00]},{ x:'04/30/2024',y:[410.00,428.00,396.50,410.00]},{ x:'05/02/2024',y:[405.50,408.00,391.00,395.00]},{ x:'05/03/2024',y:[405.00,410.00,389.00,389.00]},{ x:'05/06/2024',y:[400.00,420.00,396.00,396.00]},{ x:'05/07/2024',y:[401.00,415.00,398.00,414.00]},{ x:'05/08/2024',y:[412.00,442.00,402.00,421.00]},{ x:'05/09/2024',y:[406.00,409.50,390.00,390.00]},{ x:'05/10/2024',y:[392.50,398.00,372.50,377.50]},{ x:'05/13/2024',y:[382.50,387.00,362.00,362.00]},{ x:'05/14/2024',y:[362.00,372.00,357.00,370.50]},{ x:'05/15/2024',y:[374.00,386.50,367.00,369.00]},{ x:'05/16/2024',y:[376.50,390.50,375.50,384.00]},{ x:'05/17/2024',y:[390.00,393.50,378.00,388.50]},{ x:'05/20/2024',y:[393.50,405.50,385.50,403.50]},{ x:'05/21/2024',y:[406.00,428.50,399.50,420.00]},{ x:'05/22/2024',y:[431.50,447.00,420.00,421.00]},{ x:'05/23/2024',y:[422.00,428.50,407.50,419.50]},{ x:'05/24/2024',y:[415.50,434.00,415.00,428.00]},{ x:'06/11/2024',y:[466.00,494.00,436.00,487.50]},{ x:'06/12/2024',y:[493.50,495.00,474.00,480.50]},{ x:'06/13/2024',y:[486.00,490.00,460.00,460.00]},{ x:'06/14/2024',y:[460.00,478.00,456.50,477.00]},{ x:'06/17/2024',y:[484.00,524.00,478.00,524.00]},{ x:'06/18/2024',y:[532.00,575.00,532.00,554.00]},{ x:'06/19/2024',y:[544.00,544.00,508.00,526.00]},{ x:'06/20/2024',y:[528.00,578.00,528.00,578.00]},{ x:'06/21/2024',y:[577.00,635.00,562.00,635.00]},{ x:'06/24/2024',y:[611.00,615.00,589.00,590.00]},{ x:'06/25/2024',y:[589.00,624.00,580.00,611.00]},{ x:'06/26/2024',y:[619.00,630.00,614.00,615.00]},{ x:'06/27/2024',y:[619.00,620.00,600.00,606.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6640 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());