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/22/2024',y:[71.10,72.60,71.10,72.30]},{ x:'01/23/2024',y:[72.40,72.80,71.90,72.10]},{ x:'01/24/2024',y:[72.50,74.70,72.20,73.40]},{ x:'01/25/2024',y:[74.10,76.00,73.10,75.20]},{ x:'01/26/2024',y:[75.20,80.30,74.40,79.20]},{ x:'01/29/2024',y:[79.70,79.70,75.50,77.60]},{ x:'01/30/2024',y:[79.00,79.00,76.80,77.40]},{ x:'01/31/2024',y:[77.40,82.00,77.40,79.10]},{ x:'02/01/2024',y:[78.50,80.30,78.00,78.00]},{ x:'02/02/2024',y:[78.80,79.00,77.40,78.40]},{ x:'02/05/2024',y:[78.40,81.60,76.80,81.00]},{ x:'02/15/2024',y:[81.00,87.50,81.00,86.60]},{ x:'02/16/2024',y:[88.90,92.60,88.80,92.00]},{ x:'02/19/2024',y:[90.40,91.50,87.60,87.70]},{ x:'02/20/2024',y:[87.90,90.10,86.80,88.00]},{ x:'02/21/2024',y:[88.00,90.70,87.40,90.20]},{ x:'02/22/2024',y:[90.20,99.20,90.20,99.20]},{ x:'02/23/2024',y:[101.00,104.00,95.10,97.50]},{ x:'02/26/2024',y:[96.10,96.90,94.40,95.00]},{ x:'02/27/2024',y:[95.00,98.50,92.30,93.00]},{ x:'02/29/2024',y:[93.50,95.30,92.60,94.60]},{ x:'03/01/2024',y:[94.60,98.50,94.10,94.50]},{ x:'03/04/2024',y:[95.00,97.70,95.00,95.30]},{ x:'03/05/2024',y:[96.00,96.00,94.20,95.50]},{ x:'03/06/2024',y:[95.00,97.80,94.50,96.90]},{ x:'03/07/2024',y:[98.00,100.50,96.20,98.80]},{ x:'03/08/2024',y:[99.90,100.50,91.20,91.90]},{ x:'03/11/2024',y:[93.20,94.50,92.80,93.00]},{ x:'03/12/2024',y:[93.00,94.50,93.00,94.50]},{ x:'03/13/2024',y:[94.30,95.20,90.50,91.30]},{ x:'03/14/2024',y:[91.30,91.60,87.60,87.60]},{ x:'03/15/2024',y:[88.30,89.50,87.00,88.60]},{ x:'03/18/2024',y:[88.60,92.40,88.60,91.40]},{ x:'03/19/2024',y:[91.40,94.40,91.40,93.10]},{ x:'03/20/2024',y:[93.20,93.90,91.70,91.70]},{ x:'03/21/2024',y:[91.60,92.80,91.50,92.00]},{ x:'03/22/2024',y:[92.00,92.80,91.30,92.10]},{ x:'03/25/2024',y:[92.20,92.90,91.80,92.30]},{ x:'03/26/2024',y:[92.20,92.90,89.00,90.80]},{ x:'03/27/2024',y:[91.40,91.40,89.70,90.30]},{ x:'03/28/2024',y:[90.50,90.80,89.50,90.10]},{ x:'03/29/2024',y:[90.10,91.00,89.30,91.00]},{ x:'04/01/2024',y:[91.20,94.30,91.10,93.70]},{ x:'04/02/2024',y:[93.70,99.80,92.80,97.30]},{ x:'04/03/2024',y:[97.60,97.90,94.40,97.50]},{ x:'04/08/2024',y:[98.00,98.60,96.30,97.70]},{ x:'04/09/2024',y:[98.00,98.90,96.50,96.60]},{ x:'04/10/2024',y:[98.00,100.50,96.70,96.70]},{ x:'04/11/2024',y:[98.50,106.00,97.70,106.00]},{ x:'04/12/2024',y:[110.50,116.50,108.50,116.50]},{ x:'04/15/2024',y:[120.00,126.00,108.00,121.50]},{ x:'04/16/2024',y:[119.50,122.00,113.00,115.00]},{ x:'04/17/2024',y:[118.00,124.50,116.50,121.00]},{ x:'04/18/2024',y:[120.00,120.00,113.50,115.00]},{ x:'04/19/2024',y:[112.00,112.00,103.50,106.50]},{ x:'04/22/2024',y:[108.00,108.50,98.80,98.80]},{ x:'04/23/2024',y:[102.00,103.50,98.50,99.20]},{ x:'04/24/2024',y:[101.50,109.00,100.50,109.00]},{ x:'04/25/2024',y:[107.00,108.00,105.00,105.00]},{ x:'04/26/2024',y:[107.00,110.00,104.00,104.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3402 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());