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:'11/15/2022',y:[91.90,96.90,91.40,92.80]},{ x:'11/16/2022',y:[93.60,94.90,92.00,92.50]},{ x:'11/17/2022',y:[92.40,94.20,91.10,93.60]},{ x:'11/18/2022',y:[94.10,95.30,91.40,91.40]},{ x:'11/21/2022',y:[91.20,93.20,91.20,92.60]},{ x:'11/22/2022',y:[92.90,92.90,89.80,90.50]},{ x:'11/23/2022',y:[92.00,92.00,90.60,90.60]},{ x:'11/24/2022',y:[91.00,93.00,90.60,93.00]},{ x:'11/25/2022',y:[93.10,93.40,91.60,91.60]},{ x:'11/28/2022',y:[90.70,93.60,90.70,93.60]},{ x:'11/29/2022',y:[93.20,93.40,91.10,91.90]},{ x:'11/30/2022',y:[94.00,95.40,93.40,95.20]},{ x:'12/01/2022',y:[97.10,101.00,95.00,95.40]},{ x:'12/02/2022',y:[95.40,100.50,95.40,100.00]},{ x:'12/05/2022',y:[103.50,110.00,103.00,110.00]},{ x:'12/06/2022',y:[112.50,114.00,103.50,104.50]},{ x:'12/07/2022',y:[105.00,113.00,103.00,105.00]},{ x:'12/08/2022',y:[105.50,106.00,102.00,103.00]},{ x:'12/09/2022',y:[105.50,110.00,105.50,108.00]},{ x:'12/12/2022',y:[106.50,106.50,103.50,104.00]},{ x:'12/13/2022',y:[106.00,107.50,103.00,103.00]},{ x:'12/14/2022',y:[104.50,107.50,104.00,106.00]},{ x:'12/15/2022',y:[106.00,108.00,105.00,106.00]},{ x:'12/16/2022',y:[103.00,104.50,102.50,102.50]},{ x:'12/19/2022',y:[102.50,103.00,101.50,102.00]},{ x:'12/20/2022',y:[102.00,103.00,95.50,95.50]},{ x:'12/21/2022',y:[96.20,98.10,94.00,94.50]},{ x:'12/22/2022',y:[96.00,96.80,95.20,95.30]},{ x:'12/23/2022',y:[94.20,95.40,92.90,95.10]},{ x:'12/26/2022',y:[94.70,95.20,93.30,93.30]},{ x:'12/27/2022',y:[93.70,95.10,93.50,93.80]},{ x:'12/28/2022',y:[93.80,93.80,90.60,90.80]},{ x:'12/29/2022',y:[90.00,91.90,89.00,91.90]},{ x:'12/30/2022',y:[94.90,94.90,91.90,91.90]},{ x:'01/03/2023',y:[91.20,93.50,90.90,92.90]},{ x:'01/04/2023',y:[92.80,95.10,92.70,93.50]},{ x:'01/05/2023',y:[95.00,97.40,94.60,94.60]},{ x:'01/06/2023',y:[95.00,95.60,93.70,95.40]},{ x:'01/09/2023',y:[97.00,97.50,96.00,96.40]},{ x:'01/10/2023',y:[97.30,98.30,96.00,98.30]},{ x:'01/11/2023',y:[108.00,108.00,104.50,105.50]},{ x:'01/12/2023',y:[105.00,111.50,104.50,110.00]},{ x:'01/13/2023',y:[113.50,115.00,105.50,105.50]},{ x:'01/16/2023',y:[106.50,107.00,103.50,105.50]},{ x:'01/17/2023',y:[107.00,116.00,107.00,116.00]},{ x:'01/30/2023',y:[123.50,127.50,122.00,127.50]},{ x:'01/31/2023',y:[130.00,133.00,125.00,131.50]},{ x:'02/01/2023',y:[132.00,133.50,128.00,132.00]},{ x:'02/02/2023',y:[133.00,134.00,128.00,129.50]},{ x:'02/03/2023',y:[130.00,136.00,126.50,126.50]},{ x:'02/06/2023',y:[125.50,131.00,123.00,131.00]},{ x:'02/07/2023',y:[130.00,132.50,128.50,131.50]},{ x:'02/08/2023',y:[132.00,135.00,129.00,130.00]},{ x:'02/09/2023',y:[129.50,133.00,129.00,129.50]},{ x:'02/10/2023',y:[127.00,127.50,120.50,121.00]},{ x:'02/13/2023',y:[122.00,123.50,121.50,122.50]},{ x:'02/14/2023',y:[124.00,125.50,121.00,121.00]},{ x:'02/15/2023',y:[121.00,124.00,121.00,123.00]},{ x:'02/16/2023',y:[125.00,127.00,124.00,126.00]},{ x:'02/17/2023',y:[125.00,127.50,123.50,126.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6788 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());