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:[217.50,223.50,217.50,222.00]},{ x:'01/23/2024',y:[223.50,244.00,221.00,239.00]},{ x:'01/24/2024',y:[239.00,249.50,237.50,244.00]},{ x:'01/25/2024',y:[244.00,268.00,239.00,265.50]},{ x:'01/26/2024',y:[264.50,266.00,254.50,260.50]},{ x:'01/29/2024',y:[261.00,278.00,257.50,269.50]},{ x:'01/30/2024',y:[270.00,282.00,264.00,280.50]},{ x:'01/31/2024',y:[278.00,284.00,271.50,275.50]},{ x:'02/01/2024',y:[276.50,281.50,269.00,274.50]},{ x:'02/02/2024',y:[282.00,282.00,270.50,280.50]},{ x:'02/05/2024',y:[278.00,294.00,276.50,293.00]},{ x:'02/15/2024',y:[293.50,312.00,286.00,302.50]},{ x:'02/16/2024',y:[308.00,324.00,297.50,318.00]},{ x:'02/19/2024',y:[318.00,336.00,310.00,310.00]},{ x:'02/20/2024',y:[311.00,323.50,307.00,316.50]},{ x:'02/21/2024',y:[318.00,318.50,307.00,307.50]},{ x:'02/22/2024',y:[308.50,312.50,299.50,308.50]},{ x:'02/23/2024',y:[315.50,323.50,308.00,315.00]},{ x:'02/26/2024',y:[319.00,331.00,317.00,322.50]},{ x:'02/27/2024',y:[320.00,324.50,310.50,316.00]},{ x:'02/29/2024',y:[315.50,321.00,310.00,318.00]},{ x:'03/01/2024',y:[321.50,321.50,312.00,312.00]},{ x:'03/04/2024',y:[312.00,314.00,303.50,304.50]},{ x:'03/05/2024',y:[304.50,307.50,301.00,302.50]},{ x:'03/06/2024',y:[299.00,322.00,297.50,316.00]},{ x:'03/07/2024',y:[316.50,327.50,308.00,321.00]},{ x:'03/08/2024',y:[327.00,327.00,292.50,299.50]},{ x:'03/11/2024',y:[300.00,315.00,300.00,313.00]},{ x:'03/12/2024',y:[319.00,328.50,315.50,328.00]},{ x:'03/13/2024',y:[329.50,330.00,313.50,317.00]},{ x:'03/14/2024',y:[317.00,317.00,306.00,308.50]},{ x:'03/15/2024',y:[305.00,320.00,305.00,311.00]},{ x:'03/18/2024',y:[315.00,342.00,313.00,342.00]},{ x:'03/19/2024',y:[340.50,362.00,333.50,345.00]},{ x:'03/20/2024',y:[347.00,348.00,336.00,337.00]},{ x:'03/21/2024',y:[342.50,342.50,327.00,340.50]},{ x:'03/22/2024',y:[354.00,374.50,344.00,374.50]},{ x:'03/25/2024',y:[377.00,400.50,377.00,382.50]},{ x:'03/26/2024',y:[385.50,408.00,380.00,380.00]},{ x:'03/27/2024',y:[386.00,399.50,381.50,394.50]},{ x:'03/28/2024',y:[397.50,408.00,386.50,386.50]},{ x:'03/29/2024',y:[399.00,423.00,391.50,410.50]},{ x:'04/01/2024',y:[403.50,413.00,400.00,409.00]},{ x:'04/02/2024',y:[411.50,414.00,400.00,400.50]},{ x:'04/03/2024',y:[401.00,401.00,387.00,396.00]},{ x:'04/08/2024',y:[395.50,397.50,385.00,391.00]},{ x:'04/09/2024',y:[393.50,393.50,382.50,384.50]},{ x:'04/10/2024',y:[382.00,387.50,377.00,379.00]},{ x:'04/11/2024',y:[375.00,405.00,373.00,396.00]},{ x:'04/12/2024',y:[392.50,422.00,392.50,413.00]},{ x:'04/15/2024',y:[408.00,412.00,394.00,400.50]},{ x:'04/16/2024',y:[393.00,405.00,384.50,403.00]},{ x:'04/17/2024',y:[403.00,442.00,403.00,426.00]},{ x:'04/18/2024',y:[421.00,449.50,420.50,443.50]},{ x:'04/19/2024',y:[436.00,444.00,399.50,420.00]},{ x:'04/22/2024',y:[413.50,416.50,386.00,391.00]},{ x:'04/23/2024',y:[399.50,408.50,378.00,383.00]},{ x:'04/24/2024',y:[392.00,413.00,387.00,411.00]},{ x:'04/25/2024',y:[401.50,416.50,401.50,406.50]},{ x:'04/26/2024',y:[436.00,447.00,430.00,447.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3563 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());