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:[277.50,280.00,276.50,280.00]},{ x:'01/23/2024',y:[280.00,280.00,276.00,276.00]},{ x:'01/24/2024',y:[276.00,276.00,271.00,271.50]},{ x:'01/25/2024',y:[272.50,273.50,272.00,273.00]},{ x:'01/26/2024',y:[274.00,275.00,272.00,274.50]},{ x:'01/29/2024',y:[274.50,281.00,274.00,281.00]},{ x:'01/30/2024',y:[281.00,282.50,277.00,277.50]},{ x:'01/31/2024',y:[276.50,280.00,276.00,277.00]},{ x:'02/01/2024',y:[276.50,277.00,273.00,274.00]},{ x:'02/02/2024',y:[274.50,278.00,273.00,278.00]},{ x:'02/05/2024',y:[277.00,280.00,276.00,280.00]},{ x:'02/15/2024',y:[281.00,293.00,281.00,292.00]},{ x:'02/16/2024',y:[285.00,287.50,282.00,282.00]},{ x:'02/19/2024',y:[282.50,285.00,280.50,281.00]},{ x:'02/20/2024',y:[281.50,288.00,281.00,283.00]},{ x:'02/21/2024',y:[283.50,287.00,283.50,285.00]},{ x:'02/22/2024',y:[285.00,290.00,284.00,288.00]},{ x:'02/23/2024',y:[290.00,293.00,288.00,289.00]},{ x:'02/26/2024',y:[292.00,296.50,290.00,290.50]},{ x:'02/27/2024',y:[291.50,297.00,289.00,295.00]},{ x:'02/29/2024',y:[293.00,295.50,292.00,293.50]},{ x:'03/01/2024',y:[294.50,303.00,294.50,297.00]},{ x:'03/04/2024',y:[300.50,307.00,300.00,303.50]},{ x:'03/05/2024',y:[306.00,310.00,301.50,309.50]},{ x:'03/06/2024',y:[309.50,329.00,308.50,326.00]},{ x:'03/07/2024',y:[330.50,358.50,326.50,358.50]},{ x:'03/08/2024',y:[368.00,393.50,342.00,389.50]},{ x:'03/11/2024',y:[388.50,391.50,362.50,385.50]},{ x:'03/12/2024',y:[372.00,400.00,372.00,398.00]},{ x:'03/13/2024',y:[409.50,419.50,400.00,419.50]},{ x:'03/14/2024',y:[417.50,417.50,378.00,378.00]},{ x:'03/15/2024',y:[365.00,388.00,342.50,342.50]},{ x:'03/18/2024',y:[353.00,376.50,353.00,376.50]},{ x:'03/19/2024',y:[385.00,414.00,385.00,414.00]},{ x:'03/20/2024',y:[430.00,448.50,405.50,413.00]},{ x:'03/21/2024',y:[424.50,424.50,402.00,409.50]},{ x:'03/22/2024',y:[401.50,403.00,380.00,380.50]},{ x:'03/25/2024',y:[385.00,392.00,380.50,380.50]},{ x:'03/26/2024',y:[383.00,388.00,365.00,377.50]},{ x:'03/27/2024',y:[387.50,408.00,381.00,400.00]},{ x:'03/28/2024',y:[409.00,418.00,378.00,388.50]},{ x:'03/29/2024',y:[391.00,405.00,384.00,393.00]},{ x:'04/01/2024',y:[393.50,397.00,386.50,390.00]},{ x:'04/02/2024',y:[394.00,408.00,393.50,406.50]},{ x:'04/03/2024',y:[401.00,403.50,395.00,398.00]},{ x:'04/08/2024',y:[400.00,400.00,390.00,394.50]},{ x:'04/09/2024',y:[397.00,403.00,393.50,399.50]},{ x:'04/10/2024',y:[400.00,409.00,393.00,404.50]},{ x:'04/11/2024',y:[398.50,403.50,395.50,401.50]},{ x:'04/12/2024',y:[403.50,417.00,403.00,415.50]},{ x:'04/15/2024',y:[414.00,424.50,403.50,416.00]},{ x:'04/16/2024',y:[412.50,414.00,401.50,407.50]},{ x:'04/17/2024',y:[414.00,434.00,414.00,432.00]},{ x:'04/18/2024',y:[424.50,427.50,412.00,418.00]},{ x:'04/19/2024',y:[407.50,407.50,386.00,399.50]},{ x:'04/22/2024',y:[400.50,407.00,385.00,394.50]},{ x:'04/23/2024',y:[399.00,407.50,396.50,401.50]},{ x:'04/24/2024',y:[405.50,416.00,400.00,412.50]},{ x:'04/25/2024',y:[405.00,417.50,405.00,408.00]},{ x:'04/26/2024',y:[412.50,419.00,405.50,408.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2404 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());