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:'11/20/2023',y:[311.50,318.00,308.00,313.50]},{ x:'11/21/2023',y:[312.50,315.00,304.50,306.50]},{ x:'11/22/2023',y:[305.00,313.50,303.50,313.00]},{ x:'11/23/2023',y:[314.00,323.00,309.00,314.50]},{ x:'11/24/2023',y:[318.00,318.00,310.00,313.50]},{ x:'11/27/2023',y:[314.00,318.50,310.50,318.00]},{ x:'11/28/2023',y:[318.50,319.00,313.00,318.50]},{ x:'11/29/2023',y:[319.50,319.50,311.50,311.50]},{ x:'11/30/2023',y:[312.00,315.00,305.00,315.00]},{ x:'12/01/2023',y:[314.00,317.00,308.00,313.00]},{ x:'12/04/2023',y:[316.00,330.00,314.50,320.50]},{ x:'12/05/2023',y:[316.50,327.00,315.50,324.50]},{ x:'12/06/2023',y:[324.00,332.00,323.00,324.50]},{ x:'12/07/2023',y:[324.50,327.00,319.00,319.00]},{ x:'12/08/2023',y:[323.50,323.50,315.50,316.00]},{ x:'12/11/2023',y:[318.00,319.00,312.00,314.50]},{ x:'12/12/2023',y:[317.50,327.50,312.00,326.00]},{ x:'12/18/2023',y:[352.00,354.50,342.00,343.50]},{ x:'12/19/2023',y:[344.00,346.00,336.00,339.00]},{ x:'01/10/2024',y:[318.00,332.00,315.50,332.00]},{ x:'01/11/2024',y:[330.50,331.00,319.00,319.00]},{ x:'01/12/2024',y:[318.50,322.00,317.00,321.00]},{ x:'01/15/2024',y:[323.00,323.50,318.00,320.50]},{ x:'01/16/2024',y:[319.50,327.00,318.50,322.00]},{ x:'01/17/2024',y:[320.50,333.50,320.50,331.00]},{ x:'01/18/2024',y:[332.00,333.00,322.50,324.00]},{ x:'01/19/2024',y:[324.50,335.00,323.50,327.50]},{ 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]} ] }], 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());