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/08/2023',y:[48.25,49.95,48.25,49.65]},{ x:'02/09/2023',y:[49.75,50.00,49.00,49.15]},{ x:'02/10/2023',y:[49.70,52.50,49.70,51.40]},{ x:'02/13/2023',y:[51.00,52.80,50.40,52.60]},{ x:'02/14/2023',y:[53.50,53.80,51.70,53.50]},{ x:'02/15/2023',y:[57.90,57.90,53.00,53.50]},{ x:'02/16/2023',y:[52.30,52.80,51.60,52.70]},{ x:'02/17/2023',y:[51.90,54.30,51.60,54.20]},{ x:'02/20/2023',y:[54.20,59.60,54.20,59.60]},{ x:'02/21/2023',y:[62.50,65.50,62.00,65.50]},{ x:'02/22/2023',y:[70.50,72.00,69.00,72.00]},{ x:'02/23/2023',y:[79.20,79.20,79.20,79.20]},{ x:'02/24/2023',y:[87.10,87.10,77.50,80.00]},{ x:'03/01/2023',y:[77.00,81.30,77.00,79.50]},{ x:'03/02/2023',y:[79.40,87.40,78.60,87.40]},{ x:'03/03/2023',y:[87.00,87.40,83.60,87.20]},{ x:'03/06/2023',y:[88.40,90.00,85.50,87.00]},{ x:'03/07/2023',y:[85.30,90.00,84.90,90.00]},{ x:'03/08/2023',y:[88.10,93.50,87.50,91.50]},{ x:'03/09/2023',y:[89.90,90.90,87.00,87.30]},{ x:'03/10/2023',y:[84.50,84.50,78.70,80.80]},{ x:'03/13/2023',y:[79.50,81.70,76.80,79.90]},{ x:'03/14/2023',y:[77.20,79.20,73.40,74.00]},{ x:'03/15/2023',y:[74.00,76.90,71.20,71.90]},{ x:'03/16/2023',y:[70.00,70.40,66.10,68.30]},{ x:'03/17/2023',y:[69.50,75.10,69.10,75.10]},{ x:'03/20/2023',y:[75.10,82.60,73.50,82.60]},{ x:'03/21/2023',y:[83.50,86.80,79.50,81.90]},{ x:'03/22/2023',y:[81.90,88.30,80.40,86.40]},{ x:'03/23/2023',y:[85.10,90.30,83.20,85.70]},{ x:'03/24/2023',y:[85.70,85.70,82.00,82.10]},{ x:'03/27/2023',y:[81.80,81.80,79.10,80.10]},{ x:'03/28/2023',y:[83.10,85.80,81.20,84.90]},{ x:'03/29/2023',y:[84.00,84.00,80.40,80.70]},{ x:'03/30/2023',y:[80.80,81.20,78.20,79.80]},{ x:'03/31/2023',y:[80.00,80.80,77.60,78.60]},{ x:'04/06/2023',y:[77.70,78.00,75.80,76.00]},{ x:'04/07/2023',y:[76.20,83.60,76.20,83.60]},{ x:'04/10/2023',y:[84.00,91.90,83.80,91.90]},{ x:'04/11/2023',y:[92.20,100.50,91.90,96.80]},{ x:'04/12/2023',y:[93.50,93.50,89.00,90.90]},{ x:'04/13/2023',y:[91.10,91.60,88.00,88.90]},{ x:'04/14/2023',y:[88.90,97.70,88.50,97.70]},{ x:'04/17/2023',y:[100.00,107.00,99.00,107.00]},{ x:'04/18/2023',y:[113.00,117.00,107.50,113.50]},{ x:'04/19/2023',y:[118.50,124.50,118.50,124.50]},{ x:'04/20/2023',y:[130.50,136.50,124.50,136.00]},{ x:'04/21/2023',y:[127.50,134.00,122.50,129.00]},{ x:'04/24/2023',y:[126.00,136.50,123.00,133.00]},{ x:'04/25/2023',y:[128.00,136.00,121.50,122.00]},{ x:'04/26/2023',y:[119.00,123.00,113.50,119.00]},{ x:'04/27/2023',y:[117.00,126.50,115.00,124.00]},{ x:'04/28/2023',y:[120.50,130.00,120.50,129.50]},{ x:'05/02/2023',y:[130.00,130.50,125.00,125.00]},{ x:'05/03/2023',y:[123.50,124.00,120.50,122.00]},{ x:'05/04/2023',y:[120.50,126.00,120.50,121.00]},{ x:'05/05/2023',y:[121.00,125.00,121.00,122.50]},{ x:'05/08/2023',y:[124.00,134.50,124.00,134.00]},{ x:'05/09/2023',y:[128.50,130.00,125.00,127.00]},{ x:'05/10/2023',y:[127.00,139.50,126.00,139.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6791 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());