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/24/2024',y:[377.50,390.50,377.50,389.50]},{ x:'04/25/2024',y:[383.00,388.00,376.50,381.00]},{ x:'04/26/2024',y:[385.00,390.50,381.00,382.00]},{ x:'04/29/2024',y:[388.00,389.50,379.00,381.00]},{ x:'04/30/2024',y:[382.00,382.00,375.50,377.00]},{ x:'05/02/2024',y:[373.00,375.00,368.00,370.50]},{ x:'05/03/2024',y:[374.50,379.00,373.50,373.50]},{ x:'05/06/2024',y:[384.00,387.00,369.00,370.50]},{ x:'05/07/2024',y:[370.00,379.00,361.00,367.50]},{ x:'05/08/2024',y:[370.00,370.00,362.00,369.50]},{ x:'05/09/2024',y:[372.00,372.00,355.50,356.50]},{ x:'05/10/2024',y:[365.00,365.00,344.00,351.00]},{ x:'05/13/2024',y:[351.00,351.00,339.00,348.00]},{ x:'05/14/2024',y:[348.50,382.50,348.50,382.50]},{ x:'05/15/2024',y:[382.50,399.00,382.50,388.00]},{ x:'05/16/2024',y:[393.00,399.00,385.00,390.00]},{ x:'05/17/2024',y:[391.00,396.50,387.00,392.50]},{ x:'05/20/2024',y:[397.50,397.50,384.00,384.50]},{ x:'05/21/2024',y:[391.50,395.00,385.00,385.00]},{ x:'05/22/2024',y:[392.00,415.00,388.00,408.50]},{ x:'05/23/2024',y:[411.50,411.50,400.00,404.50]},{ x:'05/24/2024',y:[412.00,443.00,409.00,435.50]},{ x:'06/11/2024',y:[415.50,415.50,397.50,399.00]},{ x:'06/12/2024',y:[400.00,409.50,400.00,402.00]},{ x:'06/13/2024',y:[406.50,437.00,406.50,425.00]},{ x:'06/14/2024',y:[424.00,427.00,411.50,426.00]},{ x:'06/17/2024',y:[431.00,431.00,418.00,422.00]},{ x:'06/18/2024',y:[425.50,429.00,420.50,420.50]},{ x:'06/19/2024',y:[424.00,434.50,420.00,430.00]},{ x:'06/20/2024',y:[432.00,438.00,429.00,435.00]},{ x:'06/21/2024',y:[435.00,447.50,430.00,442.00]},{ x:'06/24/2024',y:[442.00,442.00,411.50,413.00]},{ x:'06/25/2024',y:[414.50,418.00,402.50,410.00]},{ x:'06/26/2024',y:[415.00,415.00,405.00,408.00]},{ x:'06/27/2024',y:[409.00,412.00,401.00,404.50]},{ x:'06/28/2024',y:[407.50,410.50,402.00,405.00]},{ x:'07/01/2024',y:[406.50,411.50,403.50,405.00]},{ x:'07/02/2024',y:[405.00,423.50,404.00,405.00]},{ x:'07/03/2024',y:[410.50,412.50,399.50,403.00]},{ x:'07/04/2024',y:[404.00,409.50,395.50,407.00]},{ x:'07/05/2024',y:[408.50,414.50,389.00,392.00]},{ x:'07/12/2024',y:[385.50,393.00,380.50,382.00]},{ x:'07/15/2024',y:[391.00,391.00,377.00,380.50]},{ x:'07/16/2024',y:[381.00,392.00,375.00,376.50]},{ x:'07/17/2024',y:[381.50,383.00,377.00,378.50]},{ x:'07/18/2024',y:[375.00,375.00,363.50,371.50]},{ x:'07/19/2024',y:[373.00,373.00,362.50,362.50]},{ x:'07/22/2024',y:[362.50,362.50,346.00,356.00]},{ x:'07/23/2024',y:[361.00,364.00,357.50,361.00]},{ x:'07/26/2024',y:[334.00,351.50,334.00,348.00]},{ x:'07/29/2024',y:[351.00,354.00,334.00,334.00]},{ x:'07/30/2024',y:[331.00,338.50,322.50,335.00]},{ x:'07/31/2024',y:[334.50,334.50,323.50,327.00]},{ x:'08/01/2024',y:[335.00,352.50,332.00,341.00]},{ x:'08/02/2024',y:[334.00,334.00,321.00,321.00]},{ x:'08/05/2024',y:[299.00,307.50,289.00,289.50]},{ x:'08/06/2024',y:[295.00,300.00,276.50,289.50]},{ x:'08/07/2024',y:[291.50,302.00,287.50,289.50]},{ x:'08/08/2024',y:[287.50,288.00,273.00,277.00]},{ x:'08/09/2024',y:[293.50,293.50,281.50,286.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6679 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());