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:[57.90,59.00,57.90,58.80]},{ x:'01/23/2024',y:[59.00,59.50,58.80,58.80]},{ x:'01/24/2024',y:[58.80,58.80,58.20,58.40]},{ x:'01/25/2024',y:[58.60,58.70,58.20,58.30]},{ x:'01/26/2024',y:[58.30,59.10,58.10,58.10]},{ x:'01/29/2024',y:[58.20,58.40,58.00,58.30]},{ x:'01/30/2024',y:[58.00,59.00,57.60,58.70]},{ x:'01/31/2024',y:[59.80,60.50,59.00,59.20]},{ x:'02/01/2024',y:[59.20,59.20,57.80,58.30]},{ x:'02/02/2024',y:[58.90,58.90,58.00,58.00]},{ x:'02/05/2024',y:[58.00,58.10,57.00,57.60]},{ x:'02/15/2024',y:[58.10,59.00,57.70,58.80]},{ x:'02/16/2024',y:[58.50,58.60,58.00,58.00]},{ x:'02/19/2024',y:[58.00,59.00,58.00,58.40]},{ x:'02/20/2024',y:[58.40,58.70,58.10,58.50]},{ x:'02/21/2024',y:[58.50,59.30,58.50,59.20]},{ x:'02/22/2024',y:[59.60,59.70,58.70,58.70]},{ x:'02/23/2024',y:[60.20,60.20,58.80,58.80]},{ x:'02/26/2024',y:[59.70,60.00,59.10,59.80]},{ x:'02/27/2024',y:[59.80,60.20,57.20,58.50]},{ x:'02/29/2024',y:[58.80,59.70,58.80,59.60]},{ x:'03/01/2024',y:[59.60,63.70,59.60,62.70]},{ x:'03/04/2024',y:[64.00,66.60,63.50,65.40]},{ x:'03/05/2024',y:[65.20,65.20,63.70,64.40]},{ x:'03/06/2024',y:[64.80,69.80,64.60,66.50]},{ x:'03/07/2024',y:[66.50,68.30,66.10,67.90]},{ x:'03/08/2024',y:[68.40,70.90,67.00,70.80]},{ x:'03/11/2024',y:[72.00,72.00,68.00,70.30]},{ x:'03/12/2024',y:[70.60,72.00,70.20,71.30]},{ x:'03/13/2024',y:[72.00,72.00,67.40,67.40]},{ x:'03/14/2024',y:[67.50,68.40,66.90,67.50]},{ x:'03/15/2024',y:[67.60,67.60,65.50,66.50]},{ x:'03/18/2024',y:[70.70,73.10,69.30,73.10]},{ x:'03/19/2024',y:[78.50,80.40,78.30,80.40]},{ x:'03/20/2024',y:[85.00,88.40,82.50,88.40]},{ x:'03/21/2024',y:[89.10,91.80,85.80,90.50]},{ x:'03/22/2024',y:[91.00,99.40,89.50,92.60]},{ x:'03/25/2024',y:[92.60,96.40,92.00,93.10]},{ x:'03/26/2024',y:[83.80,89.40,83.80,86.30]},{ x:'03/27/2024',y:[84.50,89.70,82.80,88.10]},{ x:'03/28/2024',y:[88.10,90.30,87.60,88.30]},{ x:'03/29/2024',y:[89.10,92.00,87.20,87.30]},{ x:'04/01/2024',y:[87.00,89.20,86.30,87.70]},{ x:'04/02/2024',y:[87.70,87.70,86.70,87.50]},{ x:'04/03/2024',y:[85.40,94.40,85.40,93.90]},{ x:'04/08/2024',y:[93.90,93.90,90.20,91.00]},{ x:'04/09/2024',y:[90.30,94.20,90.30,93.80]},{ x:'04/10/2024',y:[94.00,94.50,91.00,91.80]},{ x:'04/11/2024',y:[89.20,93.50,86.10,90.20]},{ x:'04/12/2024',y:[88.50,92.80,88.50,92.80]},{ x:'04/15/2024',y:[92.00,92.00,87.70,88.80]},{ x:'04/16/2024',y:[87.70,88.00,83.30,84.70]},{ x:'04/17/2024',y:[85.10,92.80,85.10,91.70]},{ x:'04/18/2024',y:[90.00,98.00,90.00,95.30]},{ x:'04/19/2024',y:[94.80,94.80,89.20,91.70]},{ x:'04/22/2024',y:[91.70,92.00,87.30,87.80]},{ x:'04/23/2024',y:[90.50,96.50,88.20,92.40]},{ x:'04/24/2024',y:[94.00,101.50,93.80,101.50]},{ x:'04/25/2024',y:[105.00,111.50,105.00,111.50]},{ x:'04/26/2024',y:[117.50,122.00,108.50,117.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5493 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());