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/31/2023',y:[77.20,77.30,74.10,75.00]},{ x:'06/01/2023',y:[75.00,75.20,74.00,74.10]},{ x:'06/02/2023',y:[75.60,78.00,74.30,77.80]},{ x:'06/05/2023',y:[78.00,78.30,75.50,75.80]},{ x:'06/06/2023',y:[76.60,77.10,75.60,76.30]},{ x:'06/07/2023',y:[77.30,83.90,76.80,83.90]},{ x:'06/08/2023',y:[83.00,83.20,80.20,80.70]},{ x:'06/09/2023',y:[82.30,82.80,80.50,81.80]},{ x:'06/12/2023',y:[82.30,82.40,78.30,79.70]},{ x:'06/13/2023',y:[80.50,80.50,78.30,78.90]},{ x:'06/14/2023',y:[78.30,79.80,77.60,78.50]},{ x:'06/15/2023',y:[78.60,79.10,76.80,78.00]},{ x:'06/16/2023',y:[78.70,79.00,77.20,77.30]},{ x:'06/19/2023',y:[77.10,77.10,74.20,74.60]},{ x:'06/20/2023',y:[75.20,75.60,72.80,73.60]},{ x:'06/21/2023',y:[74.00,74.50,73.40,73.60]},{ x:'06/26/2023',y:[73.50,73.60,71.30,72.10]},{ x:'06/27/2023',y:[72.10,73.80,70.30,70.50]},{ x:'06/28/2023',y:[71.50,72.40,71.30,71.30]},{ x:'06/29/2023',y:[72.00,74.00,71.50,72.80]},{ x:'06/30/2023',y:[73.80,75.50,72.70,75.50]},{ x:'07/03/2023',y:[76.50,76.60,73.80,74.50]},{ x:'07/04/2023',y:[74.00,76.00,73.50,75.90]},{ x:'07/05/2023',y:[75.70,78.50,75.00,78.30]},{ x:'07/06/2023',y:[77.40,78.80,76.60,77.50]},{ x:'07/07/2023',y:[77.50,80.70,77.30,80.20]},{ x:'07/10/2023',y:[80.50,83.40,78.80,78.90]},{ x:'07/11/2023',y:[80.50,86.50,80.50,85.40]},{ x:'07/12/2023',y:[87.20,89.40,85.50,87.30]},{ x:'07/13/2023',y:[89.70,95.40,88.60,90.40]},{ x:'07/14/2023',y:[93.10,96.50,91.90,96.50]},{ x:'07/17/2023',y:[97.80,106.00,97.30,106.00]},{ x:'07/18/2023',y:[115.00,116.00,100.50,107.00]},{ x:'07/19/2023',y:[110.50,114.50,107.50,108.00]},{ x:'07/20/2023',y:[117.50,118.50,111.00,118.50]},{ x:'07/21/2023',y:[113.50,118.50,112.00,116.50]},{ x:'07/24/2023',y:[116.50,127.50,114.50,122.00]},{ x:'07/25/2023',y:[124.50,134.00,123.50,134.00]},{ x:'07/26/2023',y:[132.50,141.00,125.50,127.00]},{ x:'07/27/2023',y:[138.00,139.50,129.00,133.50]},{ x:'07/28/2023',y:[136.00,142.00,131.50,138.00]},{ x:'07/31/2023',y:[141.00,144.50,124.50,125.00]},{ x:'08/01/2023',y:[125.00,128.50,117.50,122.50]},{ x:'08/02/2023',y:[121.50,124.00,111.00,113.50]},{ x:'08/04/2023',y:[119.00,122.00,110.00,119.00]},{ x:'08/07/2023',y:[123.00,130.50,120.00,130.50]},{ x:'08/08/2023',y:[131.50,133.50,124.00,128.50]},{ x:'08/09/2023',y:[125.00,129.00,123.00,123.50]},{ x:'08/10/2023',y:[121.00,122.50,112.00,120.00]},{ x:'08/11/2023',y:[122.50,122.50,115.00,118.50]},{ x:'08/14/2023',y:[117.00,120.00,115.00,117.50]},{ x:'08/15/2023',y:[122.50,124.50,118.00,120.00]},{ x:'08/16/2023',y:[118.00,127.50,117.00,126.00]},{ x:'08/17/2023',y:[123.00,128.50,122.00,128.00]},{ x:'08/18/2023',y:[127.00,130.00,118.50,122.00]},{ x:'08/21/2023',y:[123.00,124.00,118.00,120.00]},{ x:'08/22/2023',y:[124.00,127.50,123.50,125.00]},{ x:'08/23/2023',y:[125.00,129.50,124.50,128.00]},{ x:'08/24/2023',y:[133.00,134.00,125.50,125.50]},{ x:'08/25/2023',y:[122.50,125.00,120.00,121.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6274 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());