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:'04/09/2024',y:[24.65,25.00,24.65,25.00]},{ x:'04/10/2024',y:[24.80,25.00,24.80,24.80]},{ x:'04/11/2024',y:[24.35,24.70,24.30,24.35]},{ x:'04/12/2024',y:[24.35,24.40,24.00,24.00]},{ x:'04/15/2024',y:[24.00,24.70,23.85,23.90]},{ x:'04/16/2024',y:[23.90,23.90,23.10,23.50]},{ x:'04/17/2024',y:[23.50,24.35,23.40,24.35]},{ x:'04/18/2024',y:[23.60,23.95,23.60,23.85]},{ x:'04/19/2024',y:[23.85,23.85,22.80,22.80]},{ x:'04/22/2024',y:[22.80,23.35,22.80,23.15]},{ x:'04/23/2024',y:[23.00,23.20,23.00,23.15]},{ x:'04/24/2024',y:[23.15,24.05,22.35,23.70]},{ x:'04/25/2024',y:[24.85,24.85,23.70,23.70]},{ x:'04/26/2024',y:[23.70,23.70,23.50,23.60]},{ x:'04/29/2024',y:[23.30,23.30,23.15,23.30]},{ x:'04/30/2024',y:[24.50,24.50,23.40,24.20]},{ x:'05/02/2024',y:[24.10,26.60,24.00,25.80]},{ x:'05/03/2024',y:[26.60,26.80,25.90,26.20]},{ x:'05/06/2024',y:[28.45,28.45,26.20,26.60]},{ x:'05/07/2024',y:[26.10,26.10,25.45,25.50]},{ x:'05/08/2024',y:[25.50,26.85,25.50,25.60]},{ x:'05/09/2024',y:[25.05,25.60,24.60,24.80]},{ x:'05/10/2024',y:[26.00,26.00,25.00,25.00]},{ x:'05/13/2024',y:[25.00,25.85,24.75,25.60]},{ x:'05/14/2024',y:[25.00,26.10,25.00,25.90]},{ x:'05/15/2024',y:[25.60,26.00,25.45,26.00]},{ x:'05/16/2024',y:[26.20,26.20,25.55,25.80]},{ x:'05/17/2024',y:[25.50,25.85,25.45,25.60]},{ x:'05/20/2024',y:[25.60,26.00,25.45,26.00]},{ x:'05/21/2024',y:[26.00,26.35,25.50,26.10]},{ x:'05/22/2024',y:[26.10,26.15,25.60,25.65]},{ x:'05/23/2024',y:[25.65,25.95,25.45,25.45]},{ x:'05/24/2024',y:[25.20,25.50,25.20,25.30]},{ x:'06/11/2024',y:[45.50,45.50,45.50,45.50]},{ x:'06/12/2024',y:[49.80,50.00,49.80,50.00]},{ x:'06/13/2024',y:[55.00,55.00,55.00,55.00]},{ x:'06/14/2024',y:[60.50,60.50,60.50,60.50]},{ x:'06/17/2024',y:[66.50,66.50,54.80,61.00]},{ x:'06/18/2024',y:[60.50,65.00,58.70,63.50]},{ x:'06/19/2024',y:[63.40,64.30,60.80,61.50]},{ x:'06/20/2024',y:[62.20,67.60,62.20,67.60]},{ x:'06/21/2024',y:[69.50,74.30,69.50,72.90]},{ x:'06/24/2024',y:[72.90,73.90,70.50,71.70]},{ x:'06/25/2024',y:[68.00,72.00,67.00,72.00]},{ x:'06/26/2024',y:[70.80,73.00,70.50,72.00]},{ x:'06/27/2024',y:[71.00,71.70,69.80,71.70]},{ x:'06/28/2024',y:[71.70,78.00,71.70,74.00]},{ x:'07/01/2024',y:[70.20,81.40,68.90,81.40]},{ x:'07/02/2024',y:[84.60,89.50,82.50,89.50]},{ x:'07/03/2024',y:[98.40,98.40,95.00,98.40]},{ x:'07/04/2024',y:[108.00,108.00,106.00,108.00]},{ x:'07/05/2024',y:[117.00,118.50,108.00,118.50]},{ x:'07/12/2024',y:[79.30,79.30,73.80,73.80]},{ x:'07/15/2024',y:[81.00,81.00,78.00,78.60]},{ x:'07/16/2024',y:[78.90,79.20,75.50,75.50]},{ x:'07/17/2024',y:[74.00,77.50,73.00,76.80]},{ x:'07/18/2024',y:[74.30,74.80,73.60,74.00]},{ x:'07/19/2024',y:[73.50,76.00,72.30,75.00]},{ x:'07/22/2024',y:[74.20,74.20,69.90,69.90]},{ x:'07/23/2024',y:[71.60,72.00,70.50,70.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5484 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());