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:'02/02/2023',y:[83.60,86.30,83.20,85.40]},{ x:'02/03/2023',y:[85.10,87.00,84.80,86.20]},{ x:'02/06/2023',y:[86.20,86.50,84.00,86.00]},{ x:'02/07/2023',y:[88.80,89.60,84.50,85.30]},{ x:'02/08/2023',y:[86.00,86.50,84.20,85.80]},{ x:'02/09/2023',y:[85.50,86.00,84.80,85.10]},{ x:'02/10/2023',y:[85.40,87.60,84.30,84.60]},{ x:'02/13/2023',y:[84.70,85.50,82.20,82.50]},{ x:'02/14/2023',y:[83.00,84.00,82.10,82.10]},{ x:'02/15/2023',y:[82.00,85.00,81.60,83.10]},{ x:'02/16/2023',y:[83.10,83.90,82.50,83.90]},{ x:'02/17/2023',y:[82.70,86.00,82.70,85.50]},{ x:'02/20/2023',y:[87.40,94.00,87.10,93.60]},{ x:'02/21/2023',y:[94.00,98.60,92.30,98.60]},{ x:'02/22/2023',y:[96.90,98.90,92.70,96.00]},{ x:'02/23/2023',y:[96.30,97.30,93.80,95.50]},{ x:'02/24/2023',y:[95.10,96.60,90.50,91.00]},{ x:'03/01/2023',y:[90.80,90.80,88.00,89.60]},{ x:'03/02/2023',y:[89.50,91.10,88.40,90.90]},{ x:'03/03/2023',y:[91.20,93.90,90.30,92.10]},{ x:'03/06/2023',y:[93.50,93.70,90.80,91.50]},{ x:'03/07/2023',y:[90.30,91.20,89.10,89.10]},{ x:'03/08/2023',y:[89.00,93.30,88.60,92.80]},{ x:'03/09/2023',y:[93.00,95.90,91.00,91.20]},{ x:'03/10/2023',y:[89.40,90.60,84.70,85.30]},{ x:'03/13/2023',y:[86.00,86.00,83.50,83.80]},{ x:'03/14/2023',y:[83.50,84.30,82.20,82.20]},{ x:'03/15/2023',y:[83.80,84.50,83.30,83.30]},{ x:'03/16/2023',y:[82.90,83.30,80.40,81.60]},{ x:'03/17/2023',y:[84.00,86.50,83.20,85.30]},{ x:'03/20/2023',y:[85.30,86.20,84.40,84.90]},{ x:'03/21/2023',y:[85.10,85.50,83.80,83.80]},{ x:'03/22/2023',y:[84.60,85.80,84.00,85.00]},{ x:'03/23/2023',y:[84.70,84.70,83.70,84.10]},{ x:'03/24/2023',y:[84.50,85.60,83.80,84.60]},{ x:'03/27/2023',y:[85.30,85.70,83.80,84.10]},{ x:'03/28/2023',y:[84.20,84.50,81.40,81.40]},{ x:'03/29/2023',y:[82.40,82.50,81.00,81.10]},{ x:'03/30/2023',y:[82.00,82.70,80.30,80.80]},{ x:'03/31/2023',y:[81.50,81.50,80.20,80.80]},{ x:'04/06/2023',y:[81.00,81.00,78.70,78.80]},{ x:'04/07/2023',y:[79.30,80.50,78.50,79.00]},{ x:'04/10/2023',y:[79.70,79.70,77.80,77.80]},{ x:'04/11/2023',y:[78.20,78.20,76.70,76.70]},{ x:'04/12/2023',y:[77.20,79.20,76.50,78.40]},{ x:'04/13/2023',y:[78.00,81.20,77.50,78.90]},{ x:'04/14/2023',y:[80.60,81.10,79.50,80.10]},{ x:'04/17/2023',y:[80.30,80.80,79.40,79.50]},{ x:'04/18/2023',y:[80.00,80.80,78.80,79.00]},{ x:'04/19/2023',y:[78.70,79.40,77.10,77.20]},{ x:'04/20/2023',y:[77.40,77.90,75.40,75.60]},{ x:'04/21/2023',y:[74.60,76.30,73.80,74.00]},{ x:'04/24/2023',y:[73.60,75.90,73.00,75.10]},{ x:'04/25/2023',y:[75.20,75.40,71.80,71.90]},{ x:'04/26/2023',y:[72.20,72.90,71.20,72.80]},{ x:'04/27/2023',y:[73.20,73.80,72.00,73.00]},{ x:'04/28/2023',y:[74.00,74.40,73.60,74.20]},{ x:'05/02/2023',y:[74.20,75.50,73.60,74.70]},{ x:'05/03/2023',y:[75.00,75.00,73.10,73.70]},{ x:'05/04/2023',y:[73.70,75.10,72.80,72.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6205 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());