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/23/2022',y:[182.50,184.50,180.50,181.50]},{ x:'12/26/2022',y:[183.00,183.50,181.00,181.00]},{ x:'12/27/2022',y:[183.00,183.50,183.00,183.00]},{ x:'12/28/2022',y:[181.50,182.00,180.00,180.50]},{ x:'12/29/2022',y:[180.00,183.50,178.00,181.50]},{ x:'12/30/2022',y:[182.50,187.50,181.50,185.50]},{ x:'01/03/2023',y:[184.00,186.00,184.00,184.00]},{ x:'01/04/2023',y:[183.50,184.00,183.00,184.00]},{ x:'01/05/2023',y:[186.50,186.50,183.00,183.00]},{ x:'01/06/2023',y:[183.00,184.50,181.50,184.00]},{ x:'01/09/2023',y:[184.00,184.50,183.00,183.50]},{ x:'01/10/2023',y:[183.50,185.50,183.50,185.50]},{ x:'01/11/2023',y:[185.50,185.50,183.50,185.00]},{ x:'01/12/2023',y:[186.00,186.50,184.50,185.50]},{ x:'01/13/2023',y:[187.00,187.00,184.00,186.50]},{ x:'01/16/2023',y:[186.50,186.50,184.50,185.50]},{ x:'01/17/2023',y:[185.50,187.00,185.00,187.00]},{ x:'01/30/2023',y:[189.50,190.50,188.00,189.50]},{ x:'01/31/2023',y:[189.00,191.50,186.50,189.00]},{ x:'02/01/2023',y:[192.00,198.00,190.00,196.00]},{ x:'02/02/2023',y:[199.00,202.50,195.00,198.00]},{ x:'02/03/2023',y:[198.50,202.50,198.00,202.00]},{ x:'02/06/2023',y:[202.00,203.00,199.50,200.00]},{ x:'02/07/2023',y:[200.00,202.00,198.50,198.50]},{ x:'02/08/2023',y:[202.00,202.00,198.00,198.50]},{ x:'02/09/2023',y:[198.50,200.00,197.50,199.00]},{ x:'02/10/2023',y:[199.00,200.00,196.00,196.50]},{ x:'02/13/2023',y:[196.00,196.50,194.00,195.00]},{ x:'02/14/2023',y:[194.50,198.00,194.00,197.00]},{ x:'02/15/2023',y:[196.50,197.00,195.00,196.50]},{ x:'02/16/2023',y:[197.00,197.00,194.50,195.50]},{ x:'02/17/2023',y:[195.50,198.50,194.50,198.00]},{ x:'02/20/2023',y:[197.00,199.00,196.50,199.00]},{ x:'02/21/2023',y:[199.00,206.00,199.00,203.50]},{ x:'02/22/2023',y:[200.50,201.50,199.50,200.00]},{ x:'02/23/2023',y:[200.00,204.50,199.00,204.50]},{ x:'02/24/2023',y:[219.00,224.50,214.50,224.50]},{ x:'03/01/2023',y:[222.00,223.00,216.00,217.50]},{ x:'03/02/2023',y:[217.00,222.50,216.00,222.00]},{ x:'03/03/2023',y:[223.00,226.00,218.50,223.50]},{ x:'03/06/2023',y:[226.50,226.50,222.00,222.00]},{ x:'03/07/2023',y:[218.00,228.00,218.00,224.00]},{ x:'03/08/2023',y:[224.00,227.50,223.50,226.50]},{ x:'03/09/2023',y:[226.50,248.00,226.50,241.00]},{ x:'03/10/2023',y:[240.50,254.00,237.50,241.00]},{ x:'03/13/2023',y:[245.50,246.50,229.00,235.50]},{ x:'03/14/2023',y:[233.50,234.50,228.00,229.00]},{ x:'03/15/2023',y:[235.00,243.00,233.00,236.50]},{ x:'03/16/2023',y:[233.50,243.00,233.50,243.00]},{ x:'03/17/2023',y:[244.00,263.00,239.00,255.50]},{ x:'03/20/2023',y:[265.00,265.00,252.50,259.00]},{ x:'03/21/2023',y:[262.50,278.00,262.00,266.00]},{ x:'03/22/2023',y:[269.00,276.00,267.00,271.00]},{ x:'03/23/2023',y:[273.50,280.00,272.50,274.50]},{ x:'03/24/2023',y:[280.50,301.50,280.00,301.50]},{ x:'03/27/2023',y:[309.50,311.00,286.00,286.00]},{ x:'03/28/2023',y:[293.00,302.50,289.00,292.00]},{ x:'03/29/2023',y:[296.00,300.00,288.50,294.00]},{ x:'03/30/2023',y:[305.00,323.00,303.00,323.00]},{ x:'03/31/2023',y:[326.00,333.00,313.50,314.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5289 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());