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:[58.00,59.50,57.90,59.40]},{ x:'01/23/2024',y:[59.60,59.60,58.80,59.20]},{ x:'01/24/2024',y:[59.30,59.90,59.00,59.40]},{ x:'01/25/2024',y:[59.50,59.70,59.30,59.60]},{ x:'01/26/2024',y:[59.90,59.90,58.60,58.60]},{ x:'01/29/2024',y:[59.20,59.70,58.50,59.60]},{ x:'01/30/2024',y:[59.80,60.50,59.30,60.20]},{ x:'01/31/2024',y:[60.30,60.40,59.70,59.80]},{ x:'02/01/2024',y:[59.50,61.30,59.50,61.20]},{ x:'02/02/2024',y:[61.80,61.80,60.70,61.50]},{ x:'02/05/2024',y:[61.50,62.40,61.10,62.20]},{ x:'02/15/2024',y:[68.40,68.40,68.40,68.40]},{ x:'02/16/2024',y:[74.80,75.20,67.90,75.20]},{ x:'02/19/2024',y:[79.00,81.00,74.80,78.20]},{ x:'02/20/2024',y:[79.00,84.80,77.00,80.00]},{ x:'02/21/2024',y:[82.60,82.70,77.80,78.00]},{ x:'02/22/2024',y:[79.70,85.80,78.60,85.80]},{ x:'02/23/2024',y:[88.60,90.50,80.20,82.00]},{ x:'02/26/2024',y:[82.20,82.20,79.30,79.50]},{ x:'02/27/2024',y:[80.20,81.50,77.80,78.40]},{ x:'02/29/2024',y:[79.20,81.10,78.40,79.00]},{ x:'03/01/2024',y:[79.80,81.90,78.50,78.50]},{ x:'03/04/2024',y:[78.90,79.60,76.70,77.30]},{ x:'03/05/2024',y:[78.10,78.40,76.40,77.70]},{ x:'03/06/2024',y:[77.60,82.30,76.70,80.00]},{ x:'03/07/2024',y:[80.20,81.50,76.60,76.60]},{ x:'03/08/2024',y:[75.90,76.90,71.80,74.00]},{ x:'03/11/2024',y:[73.40,75.00,73.20,73.90]},{ x:'03/12/2024',y:[73.60,76.20,73.60,76.00]},{ x:'03/13/2024',y:[77.00,77.70,75.00,76.00]},{ x:'03/14/2024',y:[70.70,72.70,69.50,70.70]},{ x:'03/15/2024',y:[70.20,72.90,70.20,72.00]},{ x:'03/18/2024',y:[72.10,76.40,72.00,75.90]},{ x:'03/19/2024',y:[76.90,79.30,76.40,78.70]},{ x:'03/20/2024',y:[77.60,78.70,77.00,77.70]},{ x:'03/21/2024',y:[77.80,79.40,76.90,78.70]},{ x:'03/22/2024',y:[80.90,86.50,80.90,86.50]},{ x:'03/25/2024',y:[88.30,93.70,86.70,90.40]},{ x:'03/26/2024',y:[91.00,93.90,87.30,87.30]},{ x:'03/27/2024',y:[89.30,89.30,87.00,88.50]},{ x:'03/28/2024',y:[91.00,91.30,87.40,88.80]},{ x:'03/29/2024',y:[88.00,89.30,86.40,87.70]},{ x:'04/01/2024',y:[88.80,96.40,88.30,96.40]},{ x:'04/02/2024',y:[96.30,98.60,94.00,95.90]},{ x:'04/03/2024',y:[95.90,98.00,92.40,94.00]},{ x:'04/08/2024',y:[94.40,96.00,91.80,94.10]},{ x:'04/09/2024',y:[97.80,98.00,88.60,90.60]},{ x:'04/10/2024',y:[91.30,94.90,89.10,89.80]},{ x:'04/11/2024',y:[89.80,91.20,88.20,91.00]},{ x:'04/12/2024',y:[91.50,94.00,90.30,92.80]},{ x:'04/15/2024',y:[91.50,94.60,89.90,90.60]},{ x:'04/16/2024',y:[90.30,90.80,85.40,86.40]},{ x:'04/17/2024',y:[88.10,92.50,88.00,90.90]},{ x:'04/18/2024',y:[89.50,90.70,88.70,88.80]},{ x:'04/19/2024',y:[87.20,87.90,83.60,86.90]},{ x:'04/22/2024',y:[85.50,86.20,79.80,80.70]},{ x:'04/23/2024',y:[82.50,86.10,82.20,85.10]},{ x:'04/24/2024',y:[87.80,89.50,87.20,87.30]},{ x:'04/25/2024',y:[85.50,86.90,85.00,86.40]},{ x:'04/26/2024',y:[87.00,87.90,85.50,86.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6189 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());