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/27/2023',y:[65.50,67.00,64.40,66.40]},{ x:'04/28/2023',y:[67.30,73.00,67.30,73.00]},{ x:'05/02/2023',y:[75.00,79.90,75.00,76.20]},{ x:'05/03/2023',y:[76.20,83.80,76.20,83.80]},{ x:'05/04/2023',y:[84.80,91.90,84.80,87.90]},{ x:'05/05/2023',y:[86.50,95.90,86.50,93.40]},{ x:'05/08/2023',y:[95.30,95.80,91.30,93.90]},{ x:'05/09/2023',y:[93.90,93.90,90.60,92.50]},{ x:'05/10/2023',y:[89.40,89.80,85.90,87.20]},{ x:'05/11/2023',y:[88.80,88.80,85.40,85.50]},{ x:'05/12/2023',y:[86.20,89.00,84.80,88.10]},{ x:'05/15/2023',y:[86.20,87.40,84.00,84.00]},{ x:'05/16/2023',y:[84.60,86.10,84.10,84.10]},{ x:'05/17/2023',y:[86.00,88.30,85.60,87.60]},{ x:'05/18/2023',y:[88.50,88.50,86.60,86.80]},{ x:'05/19/2023',y:[87.20,88.60,85.30,85.30]},{ x:'05/22/2023',y:[85.50,90.80,85.50,90.80]},{ x:'05/23/2023',y:[90.40,91.00,88.60,90.00]},{ x:'05/24/2023',y:[88.50,88.80,86.30,87.40]},{ x:'05/25/2023',y:[87.00,87.00,81.80,82.00]},{ x:'05/26/2023',y:[81.50,83.60,79.00,79.70]},{ x:'05/29/2023',y:[79.70,81.00,77.40,80.00]},{ x:'05/30/2023',y:[81.30,81.80,78.70,78.80]},{ x:'05/31/2023',y:[78.90,83.70,78.90,81.60]},{ x:'06/01/2023',y:[81.20,89.20,81.20,86.80]},{ x:'06/02/2023',y:[87.80,90.00,86.00,88.50]},{ x:'06/05/2023',y:[90.40,93.50,89.00,91.60]},{ x:'06/06/2023',y:[92.30,93.40,87.20,88.00]},{ x:'06/07/2023',y:[88.20,90.00,88.20,88.90]},{ x:'06/08/2023',y:[90.00,92.30,86.70,87.70]},{ x:'06/09/2023',y:[89.10,89.10,86.00,86.60]},{ x:'06/12/2023',y:[89.30,91.40,87.30,87.70]},{ x:'06/13/2023',y:[88.50,89.60,87.50,87.90]},{ x:'06/14/2023',y:[88.00,89.20,86.90,87.00]},{ x:'06/15/2023',y:[87.00,88.00,86.40,87.40]},{ x:'06/16/2023',y:[87.50,88.30,86.60,86.70]},{ x:'06/19/2023',y:[86.90,90.80,84.50,90.00]},{ x:'06/20/2023',y:[89.40,97.60,88.30,93.00]},{ x:'06/21/2023',y:[93.00,96.70,91.20,93.50]},{ x:'06/26/2023',y:[93.50,102.50,93.50,102.50]},{ x:'06/27/2023',y:[108.50,112.50,107.00,112.50]},{ x:'06/28/2023',y:[112.00,112.00,101.50,101.50]},{ x:'06/29/2023',y:[102.00,103.00,97.50,98.60]},{ x:'06/30/2023',y:[99.70,105.50,99.30,100.50]},{ x:'07/03/2023',y:[101.00,103.50,99.90,102.00]},{ x:'07/04/2023',y:[102.50,103.50,100.00,101.50]},{ x:'07/05/2023',y:[102.50,111.50,102.00,111.50]},{ x:'07/06/2023',y:[115.00,119.50,108.00,108.00]},{ x:'07/07/2023',y:[108.50,114.50,108.00,110.50]},{ x:'07/10/2023',y:[111.50,113.00,108.50,109.50]},{ x:'07/11/2023',y:[109.50,110.00,103.50,108.50]},{ x:'07/12/2023',y:[110.00,112.00,105.50,107.50]},{ x:'07/13/2023',y:[112.00,117.50,111.00,116.00]},{ x:'07/14/2023',y:[117.50,118.00,112.00,112.50]},{ x:'07/17/2023',y:[112.00,112.50,106.00,106.00]},{ x:'07/18/2023',y:[106.50,106.50,100.50,102.00]},{ x:'07/19/2023',y:[104.00,105.00,98.40,98.80]},{ x:'07/20/2023',y:[99.60,100.50,95.30,95.40]},{ x:'07/21/2023',y:[95.40,97.70,91.00,91.20]},{ x:'07/24/2023',y:[91.80,92.10,86.60,87.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6111 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());