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:'12/12/2022',y:[104.50,104.50,101.00,101.00]},{ x:'12/13/2022',y:[103.00,104.00,100.00,101.00]},{ x:'12/14/2022',y:[102.00,104.00,101.50,102.50]},{ x:'12/15/2022',y:[102.50,104.00,101.00,101.00]},{ x:'12/16/2022',y:[98.60,98.60,95.60,95.70]},{ x:'12/19/2022',y:[95.50,96.40,93.70,93.70]},{ x:'12/20/2022',y:[94.20,95.70,89.00,89.30]},{ x:'12/21/2022',y:[91.00,91.40,88.30,88.40]},{ x:'12/22/2022',y:[90.00,90.50,88.60,88.60]},{ x:'12/23/2022',y:[86.80,89.20,85.90,88.80]},{ x:'12/26/2022',y:[89.20,89.40,87.50,87.60]},{ x:'12/27/2022',y:[88.10,91.90,88.10,90.30]},{ x:'12/28/2022',y:[90.30,90.80,88.00,88.30]},{ x:'12/29/2022',y:[88.00,89.00,86.50,87.80]},{ x:'12/30/2022',y:[89.30,90.70,88.00,88.00]},{ x:'01/03/2023',y:[89.00,92.50,88.70,92.50]},{ x:'01/04/2023',y:[92.00,97.60,91.70,96.10]},{ x:'01/05/2023',y:[96.60,98.20,94.60,96.00]},{ x:'01/06/2023',y:[96.50,97.50,95.20,96.70]},{ x:'01/09/2023',y:[99.00,99.00,96.70,96.70]},{ x:'01/10/2023',y:[97.00,101.00,96.50,97.50]},{ x:'01/11/2023',y:[98.60,99.40,97.10,98.30]},{ x:'01/12/2023',y:[98.60,99.30,95.30,95.30]},{ x:'01/13/2023',y:[97.50,100.00,95.70,96.00]},{ x:'01/16/2023',y:[96.00,97.50,94.80,97.40]},{ x:'01/17/2023',y:[97.40,98.00,96.70,96.80]},{ x:'01/30/2023',y:[99.10,104.50,98.00,103.00]},{ x:'01/31/2023',y:[103.00,105.00,102.00,104.50]},{ x:'02/01/2023',y:[107.50,109.00,104.00,105.50]},{ x:'02/02/2023',y:[107.00,111.00,106.50,108.50]},{ x:'02/03/2023',y:[110.50,119.00,109.50,118.00]},{ x:'02/06/2023',y:[117.50,119.50,115.50,119.00]},{ x:'02/07/2023',y:[116.00,117.00,113.50,115.50]},{ x:'02/08/2023',y:[116.50,119.00,114.00,114.50]},{ x:'02/09/2023',y:[115.00,118.50,112.50,117.00]},{ x:'02/10/2023',y:[119.00,119.00,115.00,115.00]},{ x:'02/13/2023',y:[115.00,116.50,114.00,115.50]},{ x:'02/14/2023',y:[119.00,123.00,116.00,116.50]},{ x:'02/15/2023',y:[115.50,117.50,114.00,115.50]},{ x:'02/16/2023',y:[116.50,119.00,116.00,118.50]},{ x:'02/17/2023',y:[117.00,124.00,117.00,123.00]},{ x:'02/20/2023',y:[125.50,129.50,124.00,127.50]},{ x:'02/21/2023',y:[129.00,130.00,126.50,127.00]},{ x:'02/22/2023',y:[124.50,125.00,119.50,122.50]},{ x:'02/23/2023',y:[124.50,129.00,124.00,128.00]},{ x:'02/24/2023',y:[129.50,130.50,123.00,124.00]},{ x:'03/01/2023',y:[122.50,127.50,122.00,127.00]},{ x:'03/02/2023',y:[128.50,128.50,125.50,126.50]},{ x:'03/03/2023',y:[128.00,129.50,126.50,127.00]},{ x:'03/06/2023',y:[129.50,132.00,128.00,130.00]},{ x:'03/07/2023',y:[130.50,131.00,127.00,127.00]},{ x:'03/08/2023',y:[126.50,128.50,124.50,128.00]},{ x:'03/09/2023',y:[130.50,135.00,128.00,128.00]},{ x:'03/10/2023',y:[125.50,127.50,121.50,124.00]},{ x:'03/13/2023',y:[122.00,122.00,112.50,120.50]},{ x:'03/14/2023',y:[118.50,120.00,116.00,116.50]},{ x:'03/15/2023',y:[120.00,120.50,117.00,117.00]},{ x:'03/16/2023',y:[117.50,118.50,114.50,116.50]},{ x:'03/17/2023',y:[119.00,120.00,118.50,119.50]},{ x:'03/20/2023',y:[123.50,123.50,120.00,120.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6104 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());