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/06/2023',y:[77.00,78.70,76.80,78.60]},{ x:'01/09/2023',y:[79.40,79.40,78.80,79.10]},{ x:'01/10/2023',y:[79.40,79.40,78.80,79.40]},{ x:'01/11/2023',y:[79.00,79.40,79.00,79.40]},{ x:'01/12/2023',y:[79.00,79.50,79.00,79.40]},{ x:'01/13/2023',y:[78.80,79.50,78.80,79.30]},{ x:'01/16/2023',y:[79.50,79.60,79.50,79.50]},{ x:'01/17/2023',y:[79.50,79.70,79.40,79.40]},{ x:'01/30/2023',y:[79.70,80.90,79.70,80.00]},{ x:'01/31/2023',y:[80.00,80.00,80.00,80.00]},{ x:'02/01/2023',y:[80.20,81.30,80.00,80.40]},{ x:'02/02/2023',y:[80.60,80.80,80.00,80.80]},{ x:'02/03/2023',y:[80.60,80.70,80.10,80.70]},{ x:'02/06/2023',y:[80.70,81.20,80.70,81.00]},{ x:'02/07/2023',y:[81.30,81.50,80.80,81.50]},{ x:'02/08/2023',y:[81.50,82.10,81.50,81.80]},{ x:'02/09/2023',y:[81.80,82.00,81.80,82.00]},{ x:'02/10/2023',y:[82.00,82.00,81.20,81.50]},{ x:'02/13/2023',y:[81.50,81.90,81.20,81.90]},{ x:'02/14/2023',y:[82.00,82.10,81.90,81.90]},{ x:'02/15/2023',y:[82.20,82.20,81.70,82.00]},{ x:'02/16/2023',y:[82.20,82.40,82.20,82.30]},{ x:'02/17/2023',y:[82.20,83.20,82.20,83.00]},{ x:'02/20/2023',y:[83.30,83.70,83.30,83.60]},{ x:'02/21/2023',y:[84.00,85.30,84.00,84.60]},{ x:'02/22/2023',y:[84.20,86.80,84.20,86.80]},{ x:'02/23/2023',y:[87.90,91.00,87.90,90.90]},{ x:'02/24/2023',y:[90.00,91.00,87.70,87.90]},{ x:'03/01/2023',y:[88.40,90.00,88.40,89.50]},{ x:'03/02/2023',y:[90.80,90.80,89.00,90.30]},{ x:'03/03/2023',y:[90.50,91.00,90.00,90.10]},{ x:'03/06/2023',y:[91.10,93.10,91.10,92.80]},{ x:'03/07/2023',y:[92.80,96.20,92.70,95.50]},{ x:'03/08/2023',y:[94.90,97.90,94.80,97.90]},{ x:'03/09/2023',y:[97.50,99.60,97.50,98.60]},{ x:'03/10/2023',y:[99.10,103.00,98.20,101.00]},{ x:'03/13/2023',y:[101.00,111.00,100.50,110.00]},{ x:'03/14/2023',y:[108.00,110.50,103.00,106.00]},{ x:'03/15/2023',y:[106.00,109.00,104.00,106.00]},{ x:'03/16/2023',y:[104.50,106.00,100.00,104.00]},{ x:'03/17/2023',y:[104.00,107.50,103.00,105.50]},{ x:'03/20/2023',y:[105.50,115.00,105.50,113.00]},{ x:'03/21/2023',y:[114.00,116.00,111.00,113.50]},{ x:'03/22/2023',y:[114.00,118.50,113.50,114.00]},{ x:'03/23/2023',y:[111.50,115.00,111.50,114.00]},{ x:'03/24/2023',y:[115.00,115.00,114.00,115.00]},{ x:'03/27/2023',y:[116.00,116.00,113.00,113.50]},{ x:'03/28/2023',y:[113.50,113.50,107.50,107.50]},{ x:'03/29/2023',y:[107.50,110.00,104.50,106.50]},{ x:'03/30/2023',y:[108.00,109.50,106.50,109.50]},{ x:'03/31/2023',y:[110.50,113.00,110.00,113.00]},{ x:'04/06/2023',y:[114.00,117.00,113.00,116.00]},{ x:'04/07/2023',y:[116.00,117.50,114.50,116.50]},{ x:'04/10/2023',y:[128.00,128.00,128.00,128.00]},{ x:'04/11/2023',y:[137.00,140.50,136.00,140.50]},{ x:'04/12/2023',y:[142.50,154.00,138.50,146.00]},{ x:'04/13/2023',y:[147.50,154.50,140.50,142.50]},{ x:'04/14/2023',y:[148.00,156.50,145.50,156.50]},{ x:'04/17/2023',y:[160.00,168.00,154.00,158.50]},{ x:'04/18/2023',y:[158.50,163.00,149.00,150.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5209 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());