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/15/2024',y:[357.00,370.00,351.00,365.00]},{ x:'01/16/2024',y:[360.00,368.50,351.50,355.00]},{ x:'01/17/2024',y:[348.00,348.50,340.00,341.50]},{ x:'01/18/2024',y:[342.50,348.00,335.00,340.00]},{ x:'01/19/2024',y:[336.00,343.50,335.50,341.50]},{ x:'01/22/2024',y:[345.00,345.00,340.00,341.00]},{ x:'01/23/2024',y:[341.00,344.00,336.50,338.00]},{ x:'01/24/2024',y:[337.50,337.50,328.00,331.50]},{ x:'01/25/2024',y:[331.00,338.00,331.00,334.50]},{ x:'01/26/2024',y:[336.50,340.50,332.50,340.00]},{ x:'01/29/2024',y:[339.50,349.50,339.50,348.00]},{ x:'01/30/2024',y:[347.00,348.50,339.50,342.00]},{ x:'01/31/2024',y:[340.50,344.50,334.00,335.50]},{ x:'02/01/2024',y:[337.50,348.50,337.50,348.00]},{ x:'02/02/2024',y:[345.00,350.50,344.50,346.00]},{ x:'02/05/2024',y:[343.50,349.50,337.50,338.50]},{ x:'02/15/2024',y:[342.50,348.50,338.00,346.00]},{ x:'02/16/2024',y:[346.00,356.50,346.00,350.00]},{ x:'02/19/2024',y:[355.00,359.00,350.50,352.50]},{ x:'02/20/2024',y:[351.00,359.50,348.50,358.00]},{ x:'02/21/2024',y:[358.50,365.50,353.50,365.00]},{ x:'02/22/2024',y:[364.50,376.50,361.50,370.00]},{ x:'02/23/2024',y:[365.00,372.00,365.00,372.00]},{ x:'02/26/2024',y:[368.50,369.50,366.00,369.00]},{ x:'02/27/2024',y:[367.00,374.50,366.50,371.50]},{ x:'02/29/2024',y:[368.50,375.00,366.00,369.50]},{ x:'03/01/2024',y:[366.00,384.00,366.00,379.00]},{ x:'03/04/2024',y:[373.50,376.00,371.50,372.50]},{ x:'03/05/2024',y:[369.50,373.50,368.00,370.00]},{ x:'03/06/2024',y:[370.00,386.00,370.00,380.50]},{ x:'03/07/2024',y:[375.50,383.00,374.50,382.00]},{ x:'03/08/2024',y:[376.50,382.00,374.00,375.50]},{ x:'03/11/2024',y:[373.00,382.00,373.00,378.50]},{ x:'03/12/2024',y:[376.50,384.00,376.00,378.50]},{ x:'03/13/2024',y:[375.50,378.00,375.50,377.00]},{ x:'03/14/2024',y:[377.00,382.50,359.50,364.00]},{ x:'03/15/2024',y:[360.00,362.00,354.00,361.50]},{ x:'03/18/2024',y:[362.50,369.00,360.00,361.50]},{ x:'03/19/2024',y:[358.00,363.00,354.00,354.00]},{ x:'03/20/2024',y:[353.50,356.50,349.00,351.00]},{ x:'03/21/2024',y:[354.50,355.50,349.50,355.00]},{ x:'03/22/2024',y:[350.00,354.00,348.50,352.50]},{ x:'03/25/2024',y:[350.00,351.00,344.00,346.50]},{ x:'03/26/2024',y:[347.50,351.00,343.50,345.00]},{ x:'03/27/2024',y:[349.00,357.00,348.50,355.00]},{ x:'03/28/2024',y:[355.00,361.50,353.50,355.00]},{ x:'03/29/2024',y:[357.00,358.00,351.50,351.50]},{ x:'04/11/2024',y:[353.50,353.50,347.50,352.50]},{ x:'04/12/2024',y:[348.50,353.00,348.50,351.00]},{ x:'04/15/2024',y:[355.00,357.00,352.00,357.00]},{ x:'04/16/2024',y:[364.00,369.00,357.50,358.00]},{ x:'04/17/2024',y:[360.50,364.00,357.00,362.00]},{ x:'04/18/2024',y:[360.00,368.50,359.00,368.50]},{ x:'04/19/2024',y:[368.00,371.50,360.00,365.00]},{ x:'04/22/2024',y:[366.00,366.00,360.00,365.50]},{ x:'04/23/2024',y:[368.50,374.00,368.50,373.50]},{ x:'04/24/2024',y:[373.50,379.50,372.00,379.50]},{ x:'04/25/2024',y:[379.00,381.50,372.50,376.00]},{ x:'04/26/2024',y:[385.00,388.00,375.00,376.50]},{ x:'04/29/2024',y:[377.50,382.50,373.00,378.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8464 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());