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/05/2023',y:[98.00,102.50,96.20,99.00]},{ x:'05/08/2023',y:[96.50,99.10,92.30,93.30]},{ x:'05/09/2023',y:[93.50,95.30,89.10,89.20]},{ x:'05/10/2023',y:[88.00,92.10,87.50,90.40]},{ x:'05/11/2023',y:[82.50,83.00,81.40,81.40]},{ x:'05/12/2023',y:[77.20,80.80,76.80,80.00]},{ x:'05/15/2023',y:[78.80,78.80,76.30,77.40]},{ x:'05/16/2023',y:[78.70,79.20,77.50,77.70]},{ x:'05/17/2023',y:[77.80,80.10,77.80,79.80]},{ x:'05/18/2023',y:[80.30,80.30,78.30,78.50]},{ x:'05/19/2023',y:[78.10,78.50,76.40,76.50]},{ x:'05/22/2023',y:[76.80,79.60,76.60,78.10]},{ x:'05/23/2023',y:[79.00,79.60,77.10,79.20]},{ x:'05/24/2023',y:[79.10,79.10,78.20,79.00]},{ x:'05/25/2023',y:[80.00,86.80,80.00,85.10]},{ 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]} ] }], 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());