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:'12/30/2022',y:[297.50,303.50,293.00,298.50]},{ x:'01/03/2023',y:[302.00,311.50,291.50,299.00]},{ x:'01/04/2023',y:[300.00,317.00,300.00,307.50]},{ x:'01/05/2023',y:[308.00,317.00,306.00,309.00]},{ x:'01/06/2023',y:[308.50,313.50,306.50,308.00]},{ x:'01/09/2023',y:[310.00,311.00,298.00,302.00]},{ x:'01/10/2023',y:[303.00,304.50,294.50,297.00]},{ x:'01/11/2023',y:[299.00,304.00,298.50,301.50]},{ x:'01/12/2023',y:[303.00,305.00,300.00,304.50]},{ x:'01/13/2023',y:[310.00,312.50,307.00,308.00]},{ x:'01/16/2023',y:[308.00,328.50,305.00,327.50]},{ x:'01/17/2023',y:[329.00,336.50,322.50,324.00]},{ x:'01/30/2023',y:[329.50,332.00,317.50,325.00]},{ x:'01/31/2023',y:[325.00,330.00,321.00,325.50]},{ x:'02/01/2023',y:[325.00,336.50,325.00,331.00]},{ x:'02/02/2023',y:[334.00,335.50,329.50,332.50]},{ x:'02/03/2023',y:[332.50,333.00,326.00,326.00]},{ x:'02/06/2023',y:[332.00,342.50,327.50,330.50]},{ x:'02/07/2023',y:[331.00,338.50,327.00,335.00]},{ x:'02/08/2023',y:[334.50,340.00,330.50,340.00]},{ x:'02/09/2023',y:[342.50,346.50,338.50,346.00]},{ x:'02/10/2023',y:[347.50,351.00,334.50,335.00]},{ x:'02/13/2023',y:[335.50,345.50,335.00,335.50]},{ x:'02/14/2023',y:[336.00,338.50,325.00,326.00]},{ x:'02/15/2023',y:[326.00,330.00,322.50,325.50]},{ x:'02/16/2023',y:[327.50,331.00,325.00,329.50]},{ x:'02/17/2023',y:[329.50,330.50,323.50,324.00]},{ x:'02/20/2023',y:[324.00,326.00,312.00,319.00]},{ x:'02/21/2023',y:[319.00,331.00,319.00,330.50]},{ x:'02/22/2023',y:[330.00,332.50,322.00,325.00]},{ x:'02/23/2023',y:[327.00,330.50,327.00,328.50]},{ x:'02/24/2023',y:[328.50,329.00,322.50,324.00]},{ x:'03/01/2023',y:[326.50,326.50,317.00,324.00]},{ x:'03/02/2023',y:[325.50,331.00,325.00,329.50]},{ x:'03/03/2023',y:[332.00,333.50,328.50,328.50]},{ x:'03/06/2023',y:[329.00,338.50,327.50,335.50]},{ x:'03/07/2023',y:[339.00,342.00,331.00,331.00]},{ x:'03/08/2023',y:[331.00,338.00,330.00,332.50]},{ x:'03/09/2023',y:[332.50,337.50,330.00,332.00]},{ x:'03/10/2023',y:[331.00,331.00,318.50,320.50]},{ x:'03/13/2023',y:[321.00,326.00,315.00,326.00]},{ x:'03/14/2023',y:[328.50,344.50,324.50,338.50]},{ x:'03/15/2023',y:[341.00,349.00,338.50,347.50]},{ x:'03/16/2023',y:[346.00,363.00,346.00,348.00]},{ x:'03/17/2023',y:[351.00,353.00,343.00,351.00]},{ x:'03/20/2023',y:[348.00,351.00,339.00,340.00]},{ x:'03/21/2023',y:[342.50,355.00,340.50,355.00]},{ x:'03/22/2023',y:[359.00,359.50,350.00,354.50]},{ x:'03/23/2023',y:[356.00,359.50,350.50,353.50]},{ x:'03/24/2023',y:[355.00,355.00,346.50,351.00]},{ x:'03/27/2023',y:[353.00,369.50,350.50,360.00]},{ x:'03/28/2023',y:[366.00,385.50,356.50,366.50]},{ x:'03/29/2023',y:[370.00,391.00,368.50,387.50]},{ x:'03/30/2023',y:[398.00,425.00,392.50,416.50]},{ x:'03/31/2023',y:[413.50,416.50,388.00,395.50]},{ x:'04/06/2023',y:[397.00,398.00,382.00,396.00]},{ x:'04/07/2023',y:[402.00,403.00,387.50,387.50]},{ x:'04/10/2023',y:[390.00,401.00,389.00,398.00]},{ x:'04/11/2023',y:[400.00,408.50,397.50,405.00]},{ x:'04/12/2023',y:[411.00,411.00,400.00,406.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3218 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());