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:'08/23/2022',y:[10.00,10.40,10.00,10.40]},{ x:'08/24/2022',y:[10.40,10.40,10.10,10.15]},{ x:'08/25/2022',y:[10.25,10.70,10.20,10.55]},{ x:'08/26/2022',y:[10.55,10.60,10.40,10.60]},{ x:'08/29/2022',y:[10.60,10.60,10.45,10.50]},{ x:'08/30/2022',y:[10.50,10.50,10.20,10.30]},{ x:'08/31/2022',y:[10.30,10.35,10.20,10.20]},{ x:'09/01/2022',y:[10.30,10.30,10.10,10.20]},{ x:'09/02/2022',y:[10.20,10.25,10.10,10.20]},{ x:'09/05/2022',y:[10.20,10.30,10.00,10.30]},{ x:'09/06/2022',y:[10.20,10.20,9.98,10.20]},{ x:'09/07/2022',y:[10.35,10.35,10.20,10.30]},{ x:'09/08/2022',y:[10.30,10.30,10.00,10.20]},{ x:'09/12/2022',y:[10.05,10.15,9.97,10.15]},{ x:'09/13/2022',y:[9.99,10.25,9.92,10.20]},{ x:'09/14/2022',y:[10.20,10.40,10.20,10.40]},{ x:'09/15/2022',y:[10.45,10.50,10.40,10.45]},{ x:'09/16/2022',y:[10.45,10.45,10.15,10.30]},{ x:'09/19/2022',y:[10.35,10.35,10.00,10.10]},{ x:'09/20/2022',y:[10.05,10.10,9.94,9.95]},{ x:'09/21/2022',y:[9.95,9.95,9.67,9.89]},{ x:'09/22/2022',y:[9.61,10.00,9.61,9.99]},{ x:'09/23/2022',y:[10.00,10.00,9.80,9.81]},{ x:'09/26/2022',y:[9.80,9.80,9.46,9.50]},{ x:'09/27/2022',y:[9.13,9.26,9.13,9.17]},{ x:'09/28/2022',y:[9.39,9.39,8.99,8.99]},{ x:'09/29/2022',y:[9.00,9.25,8.80,9.10]},{ x:'09/30/2022',y:[9.00,9.20,8.94,9.01]},{ x:'10/03/2022',y:[9.01,9.01,8.99,8.99]},{ x:'10/04/2022',y:[9.01,9.54,9.01,9.16]},{ x:'10/05/2022',y:[9.08,9.11,9.03,9.11]},{ x:'10/06/2022',y:[9.12,9.30,9.12,9.20]},{ x:'10/07/2022',y:[9.25,9.25,9.24,9.24]},{ x:'10/11/2022',y:[9.08,9.08,8.99,9.00]},{ x:'10/12/2022',y:[9.00,9.30,8.60,9.30]},{ x:'10/13/2022',y:[9.30,9.30,9.00,9.00]},{ x:'10/14/2022',y:[9.00,9.49,9.00,9.09]},{ x:'10/17/2022',y:[8.72,9.08,8.71,8.99]},{ x:'10/18/2022',y:[8.86,8.98,8.81,8.88]},{ x:'10/19/2022',y:[8.88,8.90,8.88,8.90]},{ x:'10/20/2022',y:[8.88,8.88,8.60,8.78]},{ x:'10/21/2022',y:[8.80,8.80,8.61,8.63]},{ x:'10/24/2022',y:[8.63,8.63,8.45,8.46]},{ x:'10/25/2022',y:[8.50,8.66,7.98,8.66]},{ x:'10/26/2022',y:[8.66,8.66,8.09,8.10]},{ x:'10/27/2022',y:[8.11,8.11,7.99,8.03]},{ x:'10/28/2022',y:[8.03,8.20,7.90,8.00]},{ x:'10/31/2022',y:[8.00,8.10,8.00,8.00]},{ x:'11/01/2022',y:[7.85,8.00,7.85,7.94]},{ x:'11/02/2022',y:[7.94,8.00,7.94,7.97]},{ x:'11/03/2022',y:[8.00,8.01,7.98,8.00]},{ x:'11/04/2022',y:[7.95,8.02,7.95,8.00]},{ x:'11/07/2022',y:[8.00,8.01,8.00,8.00]},{ x:'11/08/2022',y:[8.00,8.03,8.00,8.00]},{ x:'11/09/2022',y:[8.05,8.80,8.05,8.80]},{ x:'11/10/2022',y:[8.78,8.78,8.43,8.62]},{ x:'11/11/2022',y:[8.80,8.80,8.51,8.63]},{ x:'11/14/2022',y:[8.55,9.45,8.55,8.61]},{ x:'11/15/2022',y:[8.53,8.61,8.15,8.19]},{ x:'11/16/2022',y:[7.38,7.38,7.38,7.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3018 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());