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:'09/21/2022',y:[84.00,84.00,83.90,83.90]},{ x:'09/22/2022',y:[84.00,84.00,83.90,83.90]},{ x:'09/23/2022',y:[83.90,83.90,83.90,83.90]},{ x:'09/26/2022',y:[83.90,84.00,83.90,83.90]},{ x:'09/27/2022',y:[83.90,84.00,83.90,83.90]},{ x:'09/28/2022',y:[83.90,84.10,83.90,84.00]},{ x:'09/29/2022',y:[84.00,84.10,84.00,84.10]},{ x:'09/30/2022',y:[84.10,84.10,84.00,84.00]},{ x:'10/03/2022',y:[84.00,84.10,84.00,84.10]},{ x:'10/04/2022',y:[84.10,84.30,84.10,84.30]},{ x:'10/05/2022',y:[84.10,84.10,84.10,84.10]},{ x:'10/06/2022',y:[84.10,84.10,84.00,84.00]},{ x:'10/07/2022',y:[84.30,84.70,84.10,84.20]},{ x:'10/11/2022',y:[84.20,84.20,84.20,84.20]},{ x:'10/12/2022',y:[84.20,84.20,84.20,84.20]},{ x:'10/13/2022',y:[84.20,84.20,84.20,84.20]},{ x:'10/14/2022',y:[84.20,84.40,84.20,84.40]},{ x:'10/17/2022',y:[84.30,84.30,84.30,84.30]},{ x:'10/18/2022',y:[84.20,84.40,84.20,84.30]},{ x:'10/19/2022',y:[84.40,84.40,84.20,84.20]},{ x:'10/20/2022',y:[84.20,84.40,84.20,84.40]},{ x:'10/21/2022',y:[84.20,84.40,84.20,84.40]},{ x:'10/24/2022',y:[84.20,84.40,84.20,84.40]},{ x:'10/25/2022',y:[84.60,84.60,84.30,84.50]},{ x:'10/26/2022',y:[84.40,84.50,84.40,84.50]},{ x:'10/27/2022',y:[84.40,84.50,84.40,84.50]},{ x:'10/28/2022',y:[84.40,84.40,84.40,84.40]},{ x:'10/31/2022',y:[84.40,84.50,84.40,84.50]},{ x:'11/01/2022',y:[84.40,84.50,84.40,84.50]},{ x:'11/02/2022',y:[84.40,84.40,84.40,84.40]},{ x:'11/03/2022',y:[84.40,84.50,84.40,84.50]},{ x:'11/04/2022',y:[84.40,84.50,84.30,84.50]},{ x:'11/07/2022',y:[84.40,84.50,84.40,84.50]},{ x:'11/08/2022',y:[84.50,84.50,84.50,84.50]},{ x:'11/09/2022',y:[84.50,84.60,84.50,84.60]},{ x:'11/10/2022',y:[84.50,84.50,84.50,84.50]},{ x:'11/11/2022',y:[0.00,0.00,0.00,0.00]},{ x:'11/14/2022',y:[84.40,84.60,84.40,84.60]},{ x:'11/15/2022',y:[84.50,84.60,84.40,84.60]},{ x:'11/16/2022',y:[84.50,84.50,84.50,84.50]},{ x:'11/17/2022',y:[84.50,84.70,84.50,84.60]},{ x:'11/18/2022',y:[84.50,84.60,84.50,84.60]},{ x:'11/21/2022',y:[84.60,84.60,84.50,84.60]},{ x:'11/22/2022',y:[84.60,84.60,84.50,84.60]},{ x:'11/23/2022',y:[84.60,84.60,84.50,84.60]},{ x:'11/24/2022',y:[84.60,84.60,84.50,84.60]},{ x:'11/25/2022',y:[84.50,84.60,84.50,84.60]},{ x:'11/28/2022',y:[84.50,84.60,84.50,84.60]},{ x:'11/29/2022',y:[84.60,84.60,84.50,84.50]},{ x:'11/30/2022',y:[84.50,84.70,84.50,84.70]},{ x:'12/01/2022',y:[84.70,84.70,84.60,84.60]},{ x:'12/02/2022',y:[84.60,84.70,84.60,84.60]},{ x:'12/05/2022',y:[84.60,84.90,84.60,84.80]},{ x:'12/06/2022',y:[84.60,84.90,84.60,84.90]},{ x:'12/07/2022',y:[84.60,84.60,84.60,84.60]},{ x:'12/08/2022',y:[84.60,84.60,84.60,84.60]},{ x:'12/09/2022',y:[84.60,84.60,84.60,84.60]},{ x:'12/12/2022',y:[84.60,84.60,84.60,84.60]},{ x:'12/13/2022',y:[0.00,0.00,0.00,0.00]},{ x:'12/14/2022',y:[84.60,84.60,84.60,84.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8480 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());