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:'01/03/2023',y:[68.70,69.70,68.10,69.20]},{ x:'01/04/2023',y:[69.50,71.20,69.30,70.50]},{ x:'01/05/2023',y:[71.00,73.20,71.00,72.20]},{ x:'01/06/2023',y:[71.80,74.70,71.40,74.40]},{ x:'01/09/2023',y:[76.00,80.80,75.10,80.00]},{ x:'01/10/2023',y:[80.10,81.40,79.10,81.40]},{ x:'01/11/2023',y:[81.90,82.00,80.10,80.20]},{ x:'01/12/2023',y:[80.10,80.10,78.00,78.70]},{ x:'01/13/2023',y:[79.10,79.30,76.30,77.60]},{ x:'01/16/2023',y:[78.50,79.60,77.40,79.00]},{ x:'01/17/2023',y:[79.00,80.50,78.60,79.60]},{ x:'01/30/2023',y:[83.50,87.50,82.00,87.50]},{ x:'01/31/2023',y:[87.90,88.80,86.40,88.60]},{ x:'02/01/2023',y:[88.90,88.90,85.60,85.90]},{ x:'02/02/2023',y:[87.20,87.90,85.50,87.90]},{ x:'02/03/2023',y:[87.00,87.00,83.70,84.30]},{ x:'02/06/2023',y:[82.30,85.80,81.90,84.80]},{ x:'02/07/2023',y:[83.40,85.30,83.40,83.60]},{ x:'02/08/2023',y:[84.90,85.00,82.80,84.80]},{ x:'02/09/2023',y:[84.10,84.40,82.60,82.90]},{ x:'02/10/2023',y:[80.50,83.80,79.90,83.00]},{ x:'02/13/2023',y:[82.50,85.00,82.00,84.40]},{ x:'02/14/2023',y:[84.40,85.20,83.90,84.00]},{ x:'02/15/2023',y:[84.00,86.20,83.70,85.30]},{ x:'02/16/2023',y:[85.90,87.80,85.90,86.90]},{ x:'02/17/2023',y:[86.60,89.60,86.20,88.80]},{ x:'02/20/2023',y:[88.70,89.40,86.90,87.20]},{ x:'02/21/2023',y:[87.20,87.80,86.70,87.50]},{ x:'02/22/2023',y:[86.10,86.40,84.60,84.60]},{ x:'02/23/2023',y:[85.00,86.50,84.30,86.30]},{ x:'02/24/2023',y:[86.30,87.10,84.40,84.50]},{ x:'03/01/2023',y:[83.80,83.80,82.10,82.70]},{ x:'03/02/2023',y:[82.70,83.10,81.30,82.40]},{ x:'03/03/2023',y:[82.00,84.10,81.60,83.60]},{ x:'03/06/2023',y:[83.20,85.70,83.20,85.40]},{ x:'03/07/2023',y:[85.60,87.00,83.50,83.50]},{ x:'03/08/2023',y:[83.00,85.60,82.70,85.50]},{ x:'03/09/2023',y:[85.90,85.90,83.70,83.70]},{ x:'03/10/2023',y:[83.00,83.00,81.50,81.50]},{ x:'03/13/2023',y:[80.50,81.90,79.80,81.90]},{ x:'03/14/2023',y:[80.60,83.50,80.50,82.10]},{ x:'03/15/2023',y:[83.20,85.40,83.20,83.80]},{ x:'03/16/2023',y:[83.80,84.80,82.20,83.10]},{ x:'03/17/2023',y:[84.40,91.30,84.20,90.50]},{ x:'03/20/2023',y:[90.00,92.30,89.10,91.90]},{ x:'03/21/2023',y:[91.80,91.90,88.50,90.20]},{ x:'03/22/2023',y:[90.30,91.00,89.00,89.80]},{ x:'03/23/2023',y:[89.90,90.80,88.60,89.60]},{ x:'03/24/2023',y:[89.30,93.00,88.40,90.10]},{ x:'03/27/2023',y:[90.30,92.90,90.30,90.90]},{ x:'03/28/2023',y:[92.70,94.50,89.00,93.10]},{ x:'03/29/2023',y:[95.20,99.50,91.30,91.30]},{ x:'03/30/2023',y:[93.00,93.40,90.40,90.40]},{ x:'03/31/2023',y:[91.00,92.60,90.20,92.30]},{ x:'04/06/2023',y:[92.20,94.80,91.00,94.50]},{ x:'04/07/2023',y:[95.50,96.50,94.10,94.50]},{ x:'04/10/2023',y:[95.60,102.00,95.10,99.90]},{ x:'04/11/2023',y:[101.00,103.50,99.90,100.00]},{ x:'04/12/2023',y:[100.00,100.50,97.40,98.00]},{ x:'04/13/2023',y:[97.50,98.00,94.30,94.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2455 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());