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/10/2023',y:[67.80,68.30,67.20,68.00]},{ x:'01/11/2023',y:[69.50,70.30,67.50,67.50]},{ x:'01/12/2023',y:[68.00,69.00,66.50,66.60]},{ x:'01/13/2023',y:[67.70,67.80,65.60,65.70]},{ x:'01/16/2023',y:[66.00,68.40,65.90,68.20]},{ x:'01/17/2023',y:[68.40,69.80,67.60,68.90]},{ x:'01/30/2023',y:[70.20,71.80,69.50,71.50]},{ x:'01/31/2023',y:[71.50,78.60,71.40,78.60]},{ x:'02/01/2023',y:[79.80,82.50,77.50,81.00]},{ x:'02/02/2023',y:[83.00,83.00,80.20,81.40]},{ x:'02/03/2023',y:[82.20,88.80,80.20,80.40]},{ x:'02/06/2023',y:[80.30,80.40,77.00,79.00]},{ x:'02/07/2023',y:[78.50,80.60,78.10,78.90]},{ x:'02/08/2023',y:[78.90,79.30,77.70,78.50]},{ x:'02/09/2023',y:[78.60,80.80,78.20,80.20]},{ x:'02/10/2023',y:[80.70,80.70,75.90,76.80]},{ x:'02/13/2023',y:[75.90,77.30,75.20,76.20]},{ x:'02/14/2023',y:[77.20,78.10,75.70,76.00]},{ x:'02/15/2023',y:[76.20,77.70,75.80,76.50]},{ x:'02/16/2023',y:[77.10,79.40,77.00,78.90]},{ x:'02/17/2023',y:[78.10,81.80,77.80,81.50]},{ x:'02/20/2023',y:[81.90,89.50,81.00,87.60]},{ x:'02/21/2023',y:[87.70,89.40,83.10,83.80]},{ x:'02/22/2023',y:[83.00,86.80,82.60,86.30]},{ x:'02/23/2023',y:[88.80,94.80,88.00,94.10]},{ x:'02/24/2023',y:[94.20,96.20,90.70,91.10]},{ x:'03/01/2023',y:[92.00,93.80,90.50,92.80]},{ x:'03/02/2023',y:[92.60,97.30,92.10,96.00]},{ x:'03/03/2023',y:[97.00,99.80,93.00,95.00]},{ x:'03/06/2023',y:[95.90,102.00,95.10,98.00]},{ x:'03/07/2023',y:[98.70,99.40,95.90,96.10]},{ x:'03/08/2023',y:[95.80,99.60,93.80,98.40]},{ x:'03/09/2023',y:[98.20,100.00,96.00,96.90]},{ x:'03/10/2023',y:[95.10,96.30,91.00,93.40]},{ x:'03/13/2023',y:[92.20,93.00,89.00,90.50]},{ x:'03/14/2023',y:[90.70,92.50,90.70,91.10]},{ x:'03/15/2023',y:[92.60,94.60,91.20,91.50]},{ x:'03/16/2023',y:[90.80,92.60,88.30,89.60]},{ x:'03/17/2023',y:[91.50,92.40,90.30,91.80]},{ x:'03/20/2023',y:[92.50,93.50,90.80,92.20]},{ x:'03/21/2023',y:[93.20,96.50,92.50,96.20]},{ x:'03/22/2023',y:[97.00,97.50,93.80,94.30]},{ x:'03/23/2023',y:[94.00,95.40,93.30,94.70]},{ x:'03/24/2023',y:[95.40,95.40,91.30,91.80]},{ x:'03/27/2023',y:[92.00,93.00,90.90,91.00]},{ x:'03/28/2023',y:[91.80,92.50,88.70,89.40]},{ x:'03/29/2023',y:[88.00,88.80,83.50,84.40]},{ x:'03/30/2023',y:[85.10,87.40,84.00,86.60]},{ x:'03/31/2023',y:[86.80,87.20,85.50,86.40]},{ x:'04/06/2023',y:[86.50,87.20,85.20,86.70]},{ x:'04/07/2023',y:[87.00,87.20,85.70,86.00]},{ x:'04/10/2023',y:[86.00,88.50,86.00,88.00]},{ x:'04/11/2023',y:[88.30,89.70,87.10,87.90]},{ x:'04/12/2023',y:[88.40,89.30,87.30,88.30]},{ x:'04/13/2023',y:[88.80,89.50,87.20,87.20]},{ x:'04/14/2023',y:[88.60,93.20,88.00,92.80]},{ x:'04/17/2023',y:[94.10,95.80,91.20,91.20]},{ x:'04/18/2023',y:[92.50,93.20,88.50,88.50]},{ x:'04/19/2023',y:[89.30,89.70,86.90,87.10]},{ x:'04/20/2023',y:[87.60,88.00,83.90,84.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5258 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());