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:'01/22/2024',y:[329.00,333.00,327.00,329.00]},{ x:'01/23/2024',y:[332.00,334.00,323.50,324.50]},{ x:'01/24/2024',y:[325.50,325.50,321.00,321.50]},{ x:'01/25/2024',y:[323.00,324.50,320.00,322.50]},{ x:'01/26/2024',y:[320.00,323.00,319.00,323.00]},{ x:'01/29/2024',y:[321.00,330.00,320.00,330.00]},{ x:'01/30/2024',y:[332.00,332.00,325.00,325.50]},{ x:'01/31/2024',y:[328.50,334.00,327.00,328.50]},{ x:'02/01/2024',y:[329.00,332.00,324.50,328.00]},{ x:'02/02/2024',y:[327.50,330.00,326.00,328.50]},{ x:'02/05/2024',y:[329.00,332.50,326.00,331.00]},{ x:'02/15/2024',y:[331.00,344.00,331.00,344.00]},{ x:'02/16/2024',y:[343.00,346.50,340.00,346.00]},{ x:'02/19/2024',y:[347.00,347.00,332.00,335.50]},{ x:'02/20/2024',y:[335.50,340.00,333.50,339.00]},{ x:'02/21/2024',y:[339.00,347.00,339.00,346.00]},{ x:'02/22/2024',y:[348.00,352.00,343.00,348.50]},{ x:'02/23/2024',y:[349.00,351.50,347.00,351.00]},{ x:'02/26/2024',y:[348.50,374.00,346.00,367.00]},{ x:'02/27/2024',y:[379.00,383.50,370.50,372.00]},{ x:'02/29/2024',y:[372.00,382.00,371.50,382.00]},{ x:'03/01/2024',y:[382.00,388.00,379.00,379.00]},{ x:'03/04/2024',y:[383.00,390.00,380.50,388.50]},{ x:'03/05/2024',y:[390.00,393.00,381.00,392.00]},{ x:'03/06/2024',y:[390.00,399.50,388.50,399.50]},{ x:'03/07/2024',y:[399.50,402.00,392.50,394.50]},{ x:'03/08/2024',y:[395.00,398.00,385.00,393.50]},{ x:'03/11/2024',y:[395.50,395.50,375.00,386.50]},{ x:'03/12/2024',y:[379.50,387.50,379.50,383.00]},{ x:'03/13/2024',y:[383.50,390.00,381.00,382.50]},{ x:'03/14/2024',y:[382.00,386.00,377.50,381.50]},{ x:'03/15/2024',y:[381.50,388.00,379.50,383.00]},{ x:'03/18/2024',y:[385.00,391.00,375.00,387.50]},{ x:'03/19/2024',y:[389.00,391.00,385.00,388.00]},{ x:'03/20/2024',y:[389.00,396.00,386.00,392.50]},{ x:'03/21/2024',y:[396.00,400.00,388.00,389.00]},{ x:'03/22/2024',y:[389.00,392.00,384.50,385.00]},{ x:'03/25/2024',y:[385.50,389.50,385.00,387.50]},{ x:'03/26/2024',y:[387.50,388.50,376.50,377.50]},{ x:'03/27/2024',y:[375.00,386.00,375.00,386.00]},{ x:'03/28/2024',y:[389.00,394.00,386.00,390.00]},{ x:'03/29/2024',y:[394.00,394.00,386.00,386.50]},{ x:'04/01/2024',y:[386.00,390.50,386.00,388.00]},{ x:'04/02/2024',y:[390.00,393.50,387.00,391.00]},{ x:'04/03/2024',y:[389.50,392.00,388.00,390.00]},{ x:'04/08/2024',y:[390.00,394.00,388.00,388.00]},{ x:'04/09/2024',y:[389.00,390.00,384.50,385.00]},{ x:'04/10/2024',y:[391.00,396.00,385.50,390.00]},{ x:'04/11/2024',y:[387.00,387.50,382.00,383.00]},{ x:'04/12/2024',y:[394.00,419.50,390.50,409.50]},{ x:'04/15/2024',y:[415.00,415.00,401.00,406.00]},{ x:'04/16/2024',y:[406.00,406.00,396.00,398.50]},{ x:'04/17/2024',y:[403.00,419.00,403.00,404.50]},{ x:'04/18/2024',y:[400.00,403.50,390.50,392.50]},{ x:'04/19/2024',y:[393.00,393.00,367.50,375.50]},{ x:'04/22/2024',y:[375.50,380.50,360.00,360.00]},{ x:'04/23/2024',y:[362.00,370.50,362.00,370.50]},{ x:'04/24/2024',y:[376.00,381.50,375.00,378.00]},{ x:'04/25/2024',y:[378.00,379.00,375.50,377.00]},{ x:'04/26/2024',y:[382.00,382.50,379.50,380.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6691 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());