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:'05/26/2023',y:[85.10,85.10,80.50,81.20]},{ x:'05/29/2023',y:[80.90,81.20,80.00,81.00]},{ x:'05/30/2023',y:[81.90,81.90,79.50,79.70]},{ x:'05/31/2023',y:[79.50,81.40,79.50,80.70]},{ x:'06/01/2023',y:[80.30,81.40,80.30,80.70]},{ x:'06/02/2023',y:[80.80,81.70,80.70,81.30]},{ x:'06/05/2023',y:[81.30,82.90,81.30,81.70]},{ x:'06/06/2023',y:[81.90,82.10,80.40,81.10]},{ x:'06/07/2023',y:[81.20,81.50,80.50,80.90]},{ x:'06/08/2023',y:[81.00,81.00,80.40,80.80]},{ x:'06/09/2023',y:[80.80,80.80,79.60,80.60]},{ x:'06/12/2023',y:[80.00,80.50,79.50,80.10]},{ x:'06/13/2023',y:[80.00,80.80,79.70,80.70]},{ x:'06/14/2023',y:[80.70,82.00,80.50,81.20]},{ x:'06/15/2023',y:[81.20,81.20,80.60,80.70]},{ x:'06/16/2023',y:[80.70,83.70,80.50,82.80]},{ x:'06/19/2023',y:[83.00,83.00,81.40,81.60]},{ x:'06/20/2023',y:[81.50,81.70,81.30,81.70]},{ x:'06/21/2023',y:[81.40,81.80,81.10,81.80]},{ x:'06/26/2023',y:[81.40,82.40,81.30,82.40]},{ x:'06/27/2023',y:[82.40,84.60,82.40,84.60]},{ x:'06/28/2023',y:[85.40,85.70,83.10,84.70]},{ x:'06/29/2023',y:[85.00,85.20,84.00,84.10]},{ x:'06/30/2023',y:[84.20,84.80,82.60,83.00]},{ x:'07/03/2023',y:[83.10,83.10,81.30,82.00]},{ x:'07/04/2023',y:[82.00,82.10,81.40,82.00]},{ x:'07/05/2023',y:[81.50,83.40,81.50,83.20]},{ x:'07/06/2023',y:[83.20,83.90,82.50,82.60]},{ x:'07/07/2023',y:[82.50,82.50,80.30,81.30]},{ x:'07/10/2023',y:[81.40,82.00,80.80,80.90]},{ x:'07/11/2023',y:[81.00,82.80,81.00,82.70]},{ x:'07/12/2023',y:[83.20,83.20,82.00,82.90]},{ x:'07/13/2023',y:[82.50,84.30,82.30,84.00]},{ x:'07/14/2023',y:[85.10,91.80,85.10,91.60]},{ x:'07/17/2023',y:[100.50,100.50,98.00,100.50]},{ x:'07/18/2023',y:[105.00,110.00,100.00,103.50]},{ x:'07/19/2023',y:[103.00,113.50,101.50,113.50]},{ x:'07/20/2023',y:[124.50,124.50,110.50,119.00]},{ x:'07/21/2023',y:[117.00,120.00,111.50,114.00]},{ x:'07/24/2023',y:[116.00,116.00,109.00,114.50]},{ x:'07/25/2023',y:[113.00,117.00,111.00,117.00]},{ x:'07/26/2023',y:[117.00,117.00,105.50,106.00]},{ x:'07/27/2023',y:[104.50,106.00,103.00,103.00]},{ x:'07/28/2023',y:[104.50,107.00,104.50,105.00]},{ x:'07/31/2023',y:[105.00,105.00,98.30,98.40]},{ x:'08/01/2023',y:[99.10,99.10,93.20,93.20]},{ x:'08/02/2023',y:[93.50,94.20,89.90,90.80]},{ x:'08/04/2023',y:[91.50,94.50,89.90,93.60]},{ x:'08/07/2023',y:[92.90,97.00,91.80,96.50]},{ x:'08/08/2023',y:[94.10,94.50,91.00,91.50]},{ x:'08/09/2023',y:[90.60,94.50,90.40,92.00]},{ x:'08/10/2023',y:[93.00,94.10,90.30,90.50]},{ x:'08/11/2023',y:[91.60,92.50,90.20,90.20]},{ x:'08/14/2023',y:[90.10,90.10,85.70,86.80]},{ x:'08/15/2023',y:[87.80,88.40,86.20,86.90]},{ x:'08/16/2023',y:[86.80,90.10,85.10,89.00]},{ x:'08/17/2023',y:[87.60,89.40,87.30,88.50]},{ x:'08/18/2023',y:[88.80,88.80,86.90,86.90]},{ x:'08/21/2023',y:[86.60,87.90,86.00,87.50]},{ x:'08/22/2023',y:[87.00,88.20,86.70,87.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6527 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());