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/24/2024',y:[45.20,45.60,44.75,45.45]},{ x:'04/25/2024',y:[45.40,45.60,45.05,45.50]},{ x:'04/26/2024',y:[45.50,49.65,45.45,48.35]},{ x:'04/29/2024',y:[50.40,50.90,49.15,49.55]},{ x:'04/30/2024',y:[49.65,50.90,48.45,50.70]},{ x:'05/02/2024',y:[51.90,52.70,49.35,49.40]},{ x:'05/03/2024',y:[49.85,50.60,49.25,49.40]},{ x:'05/06/2024',y:[49.55,50.40,49.05,49.80]},{ x:'05/07/2024',y:[50.20,51.40,49.90,50.80]},{ x:'05/08/2024',y:[51.20,54.00,50.90,52.80]},{ x:'05/09/2024',y:[53.80,58.00,52.90,58.00]},{ x:'05/10/2024',y:[59.90,63.80,59.60,63.80]},{ x:'05/13/2024',y:[69.00,70.10,67.00,70.10]},{ x:'05/14/2024',y:[70.30,75.00,67.90,68.40]},{ x:'05/15/2024',y:[69.00,71.00,67.60,70.50]},{ x:'05/16/2024',y:[70.00,72.00,69.50,71.90]},{ x:'05/17/2024',y:[71.90,71.90,69.50,70.00]},{ x:'05/20/2024',y:[70.90,70.90,69.00,70.80]},{ x:'05/21/2024',y:[70.60,70.60,68.80,68.80]},{ x:'05/22/2024',y:[69.80,71.50,68.40,71.20]},{ x:'05/23/2024',y:[72.00,72.00,70.70,71.10]},{ x:'05/24/2024',y:[72.20,74.90,72.20,74.90]},{ x:'06/11/2024',y:[99.60,102.00,86.60,88.20]},{ x:'06/12/2024',y:[86.80,89.80,80.50,83.00]},{ x:'06/13/2024',y:[86.80,88.80,83.50,84.40]},{ x:'06/14/2024',y:[86.60,92.80,85.30,92.80]},{ x:'06/17/2024',y:[94.00,94.10,88.50,89.10]},{ x:'06/18/2024',y:[90.00,91.60,88.80,88.80]},{ x:'06/19/2024',y:[89.10,95.20,88.80,90.00]},{ x:'06/20/2024',y:[91.90,94.20,91.10,92.10]},{ x:'06/21/2024',y:[95.50,98.60,92.20,92.30]},{ x:'06/24/2024',y:[92.40,93.30,87.80,88.80]},{ x:'06/25/2024',y:[90.10,91.80,88.40,91.70]},{ x:'06/26/2024',y:[92.50,92.80,88.80,89.00]},{ x:'06/27/2024',y:[89.30,90.60,88.00,89.20]},{ x:'06/28/2024',y:[89.60,90.20,88.30,88.60]},{ x:'07/01/2024',y:[89.90,90.50,83.40,86.00]},{ x:'07/02/2024',y:[86.50,87.00,84.20,84.80]},{ x:'07/03/2024',y:[85.50,90.40,85.00,87.60]},{ x:'07/04/2024',y:[88.40,88.80,85.00,86.40]},{ x:'07/05/2024',y:[86.70,86.70,82.70,83.70]},{ x:'07/12/2024',y:[76.30,76.90,75.20,76.40]},{ x:'07/15/2024',y:[75.90,78.80,74.60,77.90]},{ x:'07/16/2024',y:[78.50,79.00,75.10,75.10]},{ x:'07/17/2024',y:[75.50,75.70,72.80,73.50]},{ x:'07/18/2024',y:[74.30,74.60,73.10,74.00]},{ x:'07/19/2024',y:[73.60,73.60,70.80,71.10]},{ x:'07/22/2024',y:[69.60,71.70,68.00,71.00]},{ x:'07/23/2024',y:[72.50,74.70,71.30,74.20]},{ x:'07/26/2024',y:[71.90,74.20,71.30,73.90]},{ x:'07/29/2024',y:[73.50,74.50,72.60,72.90]},{ x:'07/30/2024',y:[75.60,76.40,73.10,76.20]},{ x:'07/31/2024',y:[75.50,78.10,75.30,77.90]},{ x:'08/01/2024',y:[78.40,80.30,77.30,79.70]},{ x:'08/02/2024',y:[78.20,83.20,77.40,79.70]},{ x:'08/05/2024',y:[79.70,79.80,74.10,75.00]},{ x:'08/06/2024',y:[77.90,82.50,76.70,79.60]},{ x:'08/07/2024',y:[81.50,84.20,78.80,84.20]},{ x:'08/08/2024',y:[81.70,83.00,78.80,78.80]},{ x:'08/09/2024',y:[81.20,83.20,75.00,77.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2615 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());