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:[321.50,324.00,320.00,320.00]},{ x:'01/23/2024',y:[321.00,322.50,318.00,322.00]},{ x:'01/24/2024',y:[323.00,326.50,320.50,323.00]},{ x:'01/25/2024',y:[323.50,323.50,319.00,319.50]},{ x:'01/26/2024',y:[322.00,323.50,319.00,322.00]},{ x:'01/29/2024',y:[322.00,323.50,321.50,322.00]},{ x:'01/30/2024',y:[322.50,323.00,321.00,321.00]},{ x:'01/31/2024',y:[321.00,321.00,319.00,319.50]},{ x:'02/01/2024',y:[320.00,320.00,318.00,319.00]},{ x:'02/02/2024',y:[321.50,322.50,317.50,318.00]},{ x:'02/05/2024',y:[320.00,320.50,318.00,319.50]},{ x:'02/15/2024',y:[321.50,322.50,318.00,322.00]},{ x:'02/16/2024',y:[322.00,327.50,322.00,326.50]},{ x:'02/19/2024',y:[333.00,344.00,332.00,337.50]},{ x:'02/20/2024',y:[340.00,341.50,334.50,338.00]},{ x:'02/21/2024',y:[340.00,349.00,338.50,345.50]},{ x:'02/22/2024',y:[348.00,348.00,339.00,341.50]},{ x:'02/23/2024',y:[342.00,349.00,342.00,348.00]},{ x:'02/26/2024',y:[348.50,357.50,348.50,353.00]},{ x:'02/27/2024',y:[356.50,361.00,352.50,356.00]},{ x:'02/29/2024',y:[356.50,363.00,356.50,362.50]},{ x:'03/01/2024',y:[362.50,367.00,361.50,364.00]},{ x:'03/04/2024',y:[367.00,367.50,363.00,365.00]},{ x:'03/05/2024',y:[365.50,373.50,365.00,373.00]},{ x:'03/06/2024',y:[372.00,373.00,366.00,372.00]},{ x:'03/07/2024',y:[371.50,376.00,366.00,375.00]},{ x:'03/08/2024',y:[375.00,376.00,361.50,362.00]},{ x:'03/11/2024',y:[360.00,372.00,358.00,370.00]},{ x:'03/12/2024',y:[369.50,372.00,360.00,365.50]},{ x:'03/13/2024',y:[366.00,372.00,362.50,371.00]},{ x:'03/14/2024',y:[369.50,376.50,369.50,375.00]},{ x:'03/15/2024',y:[375.00,376.00,366.00,367.00]},{ x:'03/18/2024',y:[364.00,370.00,364.00,370.00]},{ x:'03/19/2024',y:[368.00,372.00,365.00,372.00]},{ x:'03/20/2024',y:[372.00,379.00,369.50,377.00]},{ x:'03/21/2024',y:[375.50,375.50,370.50,371.50]},{ x:'03/22/2024',y:[369.00,375.00,369.00,374.50]},{ x:'03/25/2024',y:[372.50,381.50,372.50,380.00]},{ x:'03/26/2024',y:[382.50,386.00,378.50,379.00]},{ x:'03/27/2024',y:[379.00,385.50,379.00,384.00]},{ x:'03/28/2024',y:[385.00,385.00,379.50,379.50]},{ x:'03/29/2024',y:[384.00,386.00,378.00,379.00]},{ x:'04/01/2024',y:[382.00,382.00,371.00,372.50]},{ x:'04/02/2024',y:[374.50,378.00,372.00,376.00]},{ x:'04/03/2024',y:[374.00,376.00,370.00,370.50]},{ x:'04/08/2024',y:[371.50,377.50,367.00,373.50]},{ x:'04/09/2024',y:[381.00,382.50,375.50,377.00]},{ x:'04/10/2024',y:[377.00,380.00,375.50,380.00]},{ x:'04/11/2024',y:[381.00,385.50,378.50,384.50]},{ x:'04/12/2024',y:[382.50,388.00,380.00,380.00]},{ x:'04/15/2024',y:[379.00,379.00,374.00,376.50]},{ x:'04/16/2024',y:[373.50,373.50,368.00,370.00]},{ x:'04/17/2024',y:[373.00,376.00,373.00,373.50]},{ x:'04/18/2024',y:[374.50,376.50,373.50,375.50]},{ x:'04/19/2024',y:[374.00,374.00,362.00,368.00]},{ x:'04/22/2024',y:[366.50,366.50,356.50,357.50]},{ x:'04/23/2024',y:[361.00,364.00,361.00,363.50]},{ x:'04/24/2024',y:[364.50,366.00,363.50,366.00]},{ x:'04/25/2024',y:[362.00,364.00,361.50,362.50]},{ x:'04/26/2024',y:[364.00,364.50,361.50,361.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6561 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());