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:'02/08/2023',y:[219.00,219.50,218.50,219.00]},{ x:'02/09/2023',y:[218.50,219.00,218.00,218.50]},{ x:'02/10/2023',y:[219.00,219.00,217.00,217.50]},{ x:'02/13/2023',y:[219.00,220.00,218.00,219.50]},{ x:'02/14/2023',y:[220.00,220.00,217.50,218.00]},{ x:'02/15/2023',y:[219.00,219.00,217.00,217.50]},{ x:'02/16/2023',y:[218.00,218.50,217.50,218.50]},{ x:'02/17/2023',y:[219.00,226.00,219.00,224.50]},{ x:'02/20/2023',y:[227.00,234.00,227.00,230.50]},{ x:'02/21/2023',y:[230.50,230.50,227.00,229.50]},{ x:'02/22/2023',y:[227.50,228.50,226.00,227.00]},{ x:'02/23/2023',y:[226.50,230.00,226.50,230.00]},{ x:'02/24/2023',y:[230.50,235.00,229.00,232.50]},{ x:'03/01/2023',y:[234.50,238.50,233.50,236.00]},{ x:'03/02/2023',y:[238.50,238.50,235.00,237.50]},{ x:'03/03/2023',y:[238.00,238.00,235.50,235.50]},{ x:'03/06/2023',y:[236.00,237.00,233.50,235.00]},{ x:'03/07/2023',y:[235.50,240.00,235.50,239.00]},{ x:'03/08/2023',y:[239.00,239.00,236.50,237.00]},{ x:'03/09/2023',y:[238.00,243.00,238.00,242.00]},{ x:'03/10/2023',y:[241.50,246.50,239.00,245.00]},{ x:'03/13/2023',y:[245.00,246.00,237.00,239.50]},{ x:'03/14/2023',y:[239.00,239.00,234.00,234.00]},{ x:'03/15/2023',y:[237.00,239.50,235.00,237.00]},{ x:'03/16/2023',y:[238.00,238.00,234.00,235.00]},{ x:'03/17/2023',y:[237.50,239.00,235.00,236.00]},{ x:'03/20/2023',y:[237.00,240.00,237.00,239.00]},{ x:'03/21/2023',y:[240.00,244.00,239.50,243.00]},{ x:'03/22/2023',y:[245.00,245.00,242.00,242.50]},{ x:'03/23/2023',y:[242.50,244.00,241.00,242.00]},{ x:'03/24/2023',y:[244.50,244.50,239.00,239.50]},{ x:'03/27/2023',y:[245.00,249.00,242.50,247.00]},{ x:'03/28/2023',y:[249.00,249.00,245.00,248.00]},{ x:'03/29/2023',y:[248.50,259.50,248.50,257.50]},{ x:'03/30/2023',y:[258.00,265.50,255.00,257.50]},{ x:'03/31/2023',y:[258.00,261.50,256.00,259.00]},{ x:'04/06/2023',y:[262.00,267.00,258.50,263.50]},{ x:'04/07/2023',y:[265.00,265.50,263.00,263.00]},{ x:'04/10/2023',y:[263.00,267.00,263.00,264.00]},{ x:'04/11/2023',y:[264.00,269.50,264.00,269.00]},{ x:'04/12/2023',y:[268.00,286.00,268.00,282.00]},{ x:'04/13/2023',y:[285.00,298.00,281.00,292.00]},{ x:'04/14/2023',y:[292.50,297.00,283.00,285.50]},{ x:'04/17/2023',y:[286.50,296.00,286.00,292.00]},{ x:'04/18/2023',y:[291.50,293.00,286.00,289.50]},{ x:'04/19/2023',y:[290.50,295.50,288.50,289.00]},{ x:'04/20/2023',y:[288.00,293.00,275.00,282.00]},{ x:'04/21/2023',y:[284.00,287.50,277.00,283.00]},{ x:'04/24/2023',y:[283.00,285.50,280.00,284.00]},{ x:'04/25/2023',y:[285.50,289.00,281.50,282.00]},{ x:'04/26/2023',y:[283.00,292.00,281.50,291.00]},{ x:'04/27/2023',y:[291.50,292.00,287.50,290.00]},{ x:'04/28/2023',y:[291.00,299.00,289.00,297.00]},{ x:'05/02/2023',y:[298.00,302.50,293.50,295.50]},{ x:'05/03/2023',y:[290.50,293.50,286.00,287.00]},{ x:'05/04/2023',y:[288.00,289.50,285.50,287.00]},{ x:'05/05/2023',y:[287.50,290.00,287.00,289.50]},{ x:'05/08/2023',y:[290.00,293.50,288.00,289.50]},{ x:'05/09/2023',y:[291.00,291.00,286.00,289.50]},{ x:'05/10/2023',y:[288.50,291.50,287.00,291.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2247 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());