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/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]},{ x:'06/28/2024',y:[594.00,613.00,594.00,605.00]},{ x:'07/01/2024',y:[605.00,650.00,601.00,644.00]},{ x:'07/02/2024',y:[644.00,698.00,644.00,680.00]},{ x:'07/03/2024',y:[680.00,748.00,680.00,700.00]},{ x:'07/04/2024',y:[732.00,747.00,713.00,721.00]},{ x:'07/05/2024',y:[721.00,793.00,721.00,793.00]},{ x:'07/12/2024',y:[632.00,684.00,626.00,661.00]},{ x:'07/15/2024',y:[673.00,682.00,641.00,641.00]},{ x:'07/16/2024',y:[649.00,674.00,642.00,655.00]},{ x:'07/17/2024',y:[666.00,720.00,656.00,720.00]},{ x:'07/18/2024',y:[695.00,740.00,673.00,684.00]},{ x:'07/19/2024',y:[708.00,752.00,706.00,752.00]},{ x:'07/22/2024',y:[771.00,784.00,715.00,719.00]},{ x:'07/23/2024',y:[738.00,780.00,736.00,758.00]},{ x:'07/26/2024',y:[727.00,832.00,723.00,830.00]},{ x:'07/29/2024',y:[858.00,900.00,791.00,795.00]},{ x:'07/30/2024',y:[785.00,874.00,785.00,874.00]},{ x:'07/31/2024',y:[890.00,901.00,823.00,831.00]},{ x:'08/01/2024',y:[872.00,876.00,821.00,821.00]},{ x:'08/02/2024',y:[800.00,849.00,791.00,795.00]},{ x:'08/05/2024',y:[738.00,760.00,716.00,716.00]},{ x:'08/06/2024',y:[750.00,764.00,645.00,705.00]},{ x:'08/07/2024',y:[692.00,736.00,692.00,705.00]},{ x:'08/08/2024',y:[698.00,698.00,651.00,651.00]},{ x:'08/09/2024',y:[670.00,699.00,670.00,687.00]},{ x:'08/12/2024',y:[699.00,709.00,687.00,687.00]},{ x:'08/13/2024',y:[698.00,707.00,685.00,707.00]},{ x:'08/14/2024',y:[720.00,768.00,720.00,756.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());