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:'11/14/2022',y:[260.50,279.00,255.00,263.00]},{ x:'11/15/2022',y:[264.50,270.50,259.00,270.50]},{ x:'11/16/2022',y:[270.00,273.00,263.50,272.50]},{ x:'11/17/2022',y:[271.00,276.00,265.00,267.50]},{ x:'11/18/2022',y:[266.50,268.50,256.00,258.00]},{ x:'11/21/2022',y:[260.00,263.50,257.00,261.00]},{ x:'11/22/2022',y:[261.50,263.50,257.00,262.00]},{ x:'11/23/2022',y:[264.50,266.00,259.00,259.00]},{ x:'11/24/2022',y:[261.00,270.00,259.00,270.00]},{ x:'11/25/2022',y:[271.00,278.00,270.00,271.00]},{ x:'11/28/2022',y:[267.00,275.00,266.50,273.00]},{ x:'11/29/2022',y:[271.00,271.00,265.00,267.00]},{ x:'11/30/2022',y:[265.50,271.00,265.00,269.50]},{ x:'12/01/2022',y:[281.50,296.00,280.50,286.50]},{ x:'12/02/2022',y:[284.50,295.50,284.00,295.50]},{ x:'12/05/2022',y:[300.50,314.50,299.00,310.50]},{ x:'12/06/2022',y:[308.50,313.50,302.00,304.50]},{ x:'12/07/2022',y:[300.00,300.00,277.50,278.50]},{ x:'12/08/2022',y:[276.00,288.00,275.50,287.00]},{ x:'12/09/2022',y:[291.00,294.00,279.00,281.50]},{ x:'12/12/2022',y:[278.50,283.00,276.50,281.00]},{ x:'12/13/2022',y:[284.50,286.00,269.50,270.00]},{ x:'12/14/2022',y:[273.00,276.00,268.50,274.00]},{ x:'12/15/2022',y:[272.00,276.00,271.00,274.00]},{ x:'12/16/2022',y:[267.00,267.00,259.00,260.00]},{ x:'12/19/2022',y:[258.50,263.50,254.00,257.00]},{ x:'12/20/2022',y:[250.00,253.00,236.50,241.50]},{ x:'12/21/2022',y:[241.50,243.50,232.50,237.00]},{ x:'12/22/2022',y:[241.50,243.00,234.50,243.00]},{ x:'12/23/2022',y:[236.50,244.50,234.00,242.00]},{ x:'12/26/2022',y:[241.50,242.00,237.00,237.00]},{ x:'12/27/2022',y:[238.00,243.00,238.00,238.00]},{ x:'12/28/2022',y:[236.00,239.50,230.50,231.50]},{ x:'12/29/2022',y:[227.00,232.50,226.00,231.00]},{ x:'12/30/2022',y:[235.00,236.50,227.00,227.00]},{ x:'01/03/2023',y:[224.00,234.00,224.00,233.00]},{ x:'01/04/2023',y:[233.00,233.00,221.50,223.00]},{ x:'01/05/2023',y:[225.00,226.50,217.00,219.50]},{ x:'01/06/2023',y:[220.00,228.00,220.00,227.50]},{ x:'01/09/2023',y:[233.00,236.00,230.50,236.00]},{ x:'01/10/2023',y:[234.50,236.50,231.50,236.50]},{ x:'01/11/2023',y:[238.00,239.00,234.00,234.00]},{ x:'01/12/2023',y:[234.00,237.00,232.00,232.00]},{ x:'01/13/2023',y:[236.00,238.50,230.00,230.00]},{ x:'01/16/2023',y:[232.50,235.50,231.00,233.00]},{ x:'01/17/2023',y:[232.00,235.50,230.50,234.50]},{ x:'01/30/2023',y:[242.00,246.00,239.00,246.00]},{ x:'01/31/2023',y:[244.00,248.00,242.00,243.00]},{ x:'02/01/2023',y:[247.00,258.50,246.50,255.50]},{ x:'02/02/2023',y:[259.50,265.00,255.50,264.50]},{ x:'02/03/2023',y:[262.50,262.50,254.00,255.00]},{ x:'02/06/2023',y:[245.50,245.50,238.50,239.00]},{ x:'02/07/2023',y:[239.50,245.00,239.00,244.00]},{ x:'02/08/2023',y:[247.50,248.00,243.50,244.00]},{ x:'02/09/2023',y:[243.00,245.00,241.50,243.00]},{ x:'02/10/2023',y:[242.00,243.00,237.00,237.00]},{ x:'02/13/2023',y:[235.50,239.00,233.00,233.00]},{ x:'02/14/2023',y:[236.50,241.50,235.50,238.50]},{ x:'02/15/2023',y:[237.00,244.00,234.00,244.00]},{ x:'02/16/2023',y:[245.50,248.50,243.50,247.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8046 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());