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:[6.50,6.50,6.50,6.50]},{ x:'08/24/2022',y:[6.90,6.90,6.52,6.52]},{ x:'08/25/2022',y:[6.50,6.50,6.40,6.40]},{ x:'08/26/2022',y:[6.49,6.49,6.49,6.49]},{ x:'08/29/2022',y:[0.00,0.00,0.00,0.00]},{ x:'08/30/2022',y:[6.19,6.19,6.18,6.18]},{ x:'08/31/2022',y:[6.18,6.19,6.18,6.19]},{ x:'09/01/2022',y:[6.19,6.19,6.19,6.19]},{ x:'09/02/2022',y:[6.19,6.19,6.10,6.10]},{ x:'09/05/2022',y:[6.10,6.10,6.00,6.00]},{ x:'09/06/2022',y:[6.00,6.00,5.92,5.92]},{ x:'09/07/2022',y:[0.00,0.00,0.00,0.00]},{ x:'09/08/2022',y:[5.70,5.99,5.70,5.73]},{ x:'09/12/2022',y:[5.89,5.89,5.70,5.71]},{ x:'09/13/2022',y:[5.85,5.85,5.71,5.71]},{ x:'09/14/2022',y:[5.71,5.71,5.71,5.71]},{ x:'09/15/2022',y:[5.71,5.94,5.71,5.93]},{ x:'09/16/2022',y:[5.95,5.95,5.76,5.81]},{ x:'09/19/2022',y:[5.81,5.81,5.81,5.81]},{ x:'09/20/2022',y:[5.99,6.00,5.99,6.00]},{ x:'09/21/2022',y:[6.00,6.00,6.00,6.00]},{ x:'09/22/2022',y:[6.12,6.12,5.63,5.63]},{ x:'09/23/2022',y:[6.19,6.19,6.19,6.19]},{ x:'09/26/2022',y:[6.80,6.80,6.80,6.80]},{ x:'09/27/2022',y:[7.48,7.48,7.48,7.48]},{ x:'09/28/2022',y:[8.22,8.22,7.60,7.95]},{ x:'09/29/2022',y:[8.70,8.70,7.90,7.90]},{ x:'09/30/2022',y:[7.68,7.68,7.31,7.60]},{ x:'10/03/2022',y:[7.16,7.61,7.10,7.10]},{ x:'10/04/2022',y:[7.50,7.50,7.18,7.42]},{ x:'10/05/2022',y:[7.40,7.40,7.40,7.40]},{ x:'10/06/2022',y:[7.16,7.16,6.92,6.92]},{ x:'10/07/2022',y:[6.40,6.40,6.30,6.31]},{ x:'10/11/2022',y:[5.89,5.89,5.81,5.81]},{ x:'10/12/2022',y:[5.81,5.81,5.63,5.63]},{ x:'10/13/2022',y:[5.63,5.63,5.11,5.12]},{ x:'10/14/2022',y:[5.18,5.18,5.14,5.14]},{ x:'10/17/2022',y:[4.70,4.70,4.68,4.68]},{ x:'10/18/2022',y:[4.51,4.51,4.43,4.49]},{ x:'10/19/2022',y:[4.50,4.78,4.50,4.77]},{ x:'10/20/2022',y:[4.77,4.77,4.77,4.77]},{ x:'10/21/2022',y:[4.65,4.65,4.65,4.65]},{ x:'10/24/2022',y:[5.11,5.11,4.66,4.67]},{ x:'10/25/2022',y:[0.00,0.00,0.00,0.00]},{ x:'10/26/2022',y:[4.66,4.66,4.66,4.66]},{ x:'10/27/2022',y:[4.50,4.50,4.21,4.21]},{ x:'10/28/2022',y:[4.21,4.21,3.99,3.99]},{ x:'10/31/2022',y:[3.99,3.99,3.91,3.91]},{ x:'11/01/2022',y:[3.91,3.91,3.91,3.91]},{ x:'11/02/2022',y:[3.91,3.91,3.90,3.91]},{ x:'11/03/2022',y:[3.90,3.90,3.90,3.90]},{ x:'11/04/2022',y:[3.90,3.90,3.90,3.90]},{ x:'11/07/2022',y:[3.90,3.90,3.89,3.89]},{ x:'11/08/2022',y:[3.89,3.99,3.89,3.98]},{ x:'11/09/2022',y:[3.97,3.97,3.85,3.85]},{ x:'11/10/2022',y:[3.84,3.84,3.61,3.62]},{ x:'11/11/2022',y:[3.65,3.98,3.65,3.98]},{ x:'11/14/2022',y:[4.37,4.37,4.37,4.37]},{ x:'11/15/2022',y:[4.70,4.70,4.11,4.29]},{ x:'11/16/2022',y:[3.87,3.87,3.87,3.87]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3642 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());