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:[325.50,332.00,320.00,331.00]},{ x:'01/16/2024',y:[329.50,329.50,325.00,326.00]},{ x:'01/17/2024',y:[333.00,333.00,318.00,322.00]},{ x:'01/18/2024',y:[322.00,323.00,316.00,318.00]},{ x:'01/19/2024',y:[326.00,330.00,321.00,330.00]},{ x:'01/22/2024',y:[331.00,337.50,328.00,337.00]},{ x:'01/23/2024',y:[339.00,345.00,338.00,343.00]},{ x:'01/24/2024',y:[345.00,345.00,339.50,342.00]},{ x:'01/25/2024',y:[344.00,360.00,344.00,355.00]},{ x:'01/26/2024',y:[355.00,374.50,355.00,374.50]},{ x:'01/29/2024',y:[388.00,411.50,380.00,411.50]},{ x:'01/30/2024',y:[421.00,436.50,413.00,428.50]},{ x:'01/31/2024',y:[420.50,437.50,415.00,415.00]},{ x:'02/01/2024',y:[417.50,449.50,417.50,421.00]},{ x:'02/02/2024',y:[413.00,442.00,406.00,406.00]},{ x:'02/05/2024',y:[395.00,395.00,372.00,374.50]},{ x:'02/15/2024',y:[350.00,379.00,350.00,372.00]},{ x:'02/16/2024',y:[373.00,388.00,371.50,371.50]},{ x:'02/19/2024',y:[372.50,373.00,359.00,366.50]},{ x:'02/20/2024',y:[371.00,373.00,365.00,368.00]},{ x:'02/21/2024',y:[368.00,369.50,345.00,345.00]},{ x:'02/22/2024',y:[344.00,344.00,325.00,336.00]},{ x:'02/23/2024',y:[343.50,346.00,332.00,341.00]},{ x:'02/26/2024',y:[348.00,355.00,345.00,354.00]},{ x:'02/27/2024',y:[357.00,360.00,348.50,351.00]},{ x:'02/29/2024',y:[354.00,371.00,351.00,371.00]},{ x:'03/01/2024',y:[375.00,395.00,375.00,395.00]},{ x:'03/04/2024',y:[412.00,420.00,385.50,386.50]},{ x:'03/05/2024',y:[387.00,395.00,352.00,355.50]},{ x:'03/06/2024',y:[355.00,372.00,345.00,356.00]},{ x:'03/07/2024',y:[359.50,364.50,323.50,323.50]},{ x:'03/08/2024',y:[310.00,319.00,291.50,291.50]},{ x:'03/11/2024',y:[293.00,293.00,283.50,291.50]},{ x:'03/12/2024',y:[295.00,300.00,295.00,300.00]},{ x:'03/13/2024',y:[300.00,300.00,270.00,270.00]},{ x:'03/14/2024',y:[260.00,271.50,251.00,263.00]},{ x:'03/15/2024',y:[262.00,268.00,262.00,263.50]},{ x:'03/18/2024',y:[263.50,289.00,263.50,289.00]},{ x:'03/19/2024',y:[294.00,294.00,277.00,278.50]},{ x:'03/20/2024',y:[286.50,294.00,281.50,290.00]},{ x:'03/21/2024',y:[298.00,298.00,287.00,287.00]},{ x:'03/22/2024',y:[286.50,286.50,279.00,282.00]},{ x:'03/25/2024',y:[286.00,289.50,284.00,286.50]},{ x:'03/26/2024',y:[289.00,289.00,276.00,282.00]},{ x:'03/27/2024',y:[282.00,291.00,282.00,291.00]},{ x:'03/28/2024',y:[288.00,288.00,266.00,270.50]},{ x:'03/29/2024',y:[271.50,294.00,268.50,277.00]},{ x:'04/11/2024',y:[259.00,262.50,254.00,255.00]},{ x:'04/12/2024',y:[255.00,257.50,246.00,249.50]},{ x:'04/15/2024',y:[245.00,248.00,234.50,238.00]},{ x:'04/16/2024',y:[236.50,256.50,228.00,246.50]},{ x:'04/17/2024',y:[247.00,255.00,245.00,253.00]},{ x:'04/18/2024',y:[249.50,257.50,246.00,248.50]},{ x:'04/19/2024',y:[247.00,251.50,230.50,236.50]},{ x:'04/22/2024',y:[236.50,240.00,227.00,227.00]},{ x:'04/23/2024',y:[233.00,235.50,226.00,229.00]},{ x:'04/24/2024',y:[234.00,241.50,233.00,236.00]},{ x:'04/25/2024',y:[236.00,236.00,224.00,228.50]},{ x:'04/26/2024',y:[231.00,247.00,231.00,236.50]},{ x:'04/29/2024',y:[241.00,246.50,237.00,241.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8227 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());