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:[103.50,103.95,103.50,103.95]},{ x:'04/25/2024',y:[101.05,101.05,100.15,100.20]},{ x:'04/26/2024',y:[103.95,104.45,103.90,104.20]},{ x:'04/29/2024',y:[105.50,105.90,105.50,105.85]},{ x:'04/30/2024',y:[105.85,105.95,105.50,105.50]},{ x:'05/02/2024',y:[101.45,101.85,101.40,101.80]},{ x:'05/03/2024',y:[104.20,104.30,103.80,103.80]},{ x:'05/06/2024',y:[106.85,106.95,106.60,106.60]},{ x:'05/07/2024',y:[108.70,108.90,108.65,108.90]},{ x:'05/08/2024',y:[109.05,109.25,108.75,108.75]},{ x:'05/09/2024',y:[108.60,108.75,108.30,108.30]},{ x:'05/10/2024',y:[109.55,109.60,109.20,109.45]},{ x:'05/13/2024',y:[109.80,110.10,109.65,110.05]},{ x:'05/14/2024',y:[110.05,110.05,109.75,110.05]},{ x:'05/15/2024',y:[111.60,111.80,111.40,111.45]},{ x:'05/16/2024',y:[115.15,115.35,115.05,115.15]},{ x:'05/17/2024',y:[114.45,114.50,114.20,114.30]},{ x:'05/20/2024',y:[114.50,114.65,114.40,114.65]},{ x:'05/21/2024',y:[115.55,115.60,115.40,115.60]},{ x:'05/22/2024',y:[116.20,116.40,116.20,116.35]},{ x:'05/23/2024',y:[117.05,118.20,116.90,117.90]},{ x:'05/24/2024',y:[115.10,115.30,114.95,114.95]},{ x:'06/11/2024',y:[119.50,119.60,119.35,119.50]},{ x:'06/12/2024',y:[121.40,121.70,121.40,121.55]},{ x:'06/13/2024',y:[126.05,126.40,126.00,126.10]},{ x:'06/14/2024',y:[126.10,126.50,126.00,126.35]},{ x:'06/17/2024',y:[127.10,127.30,127.00,127.10]},{ x:'06/18/2024',y:[129.95,130.00,129.60,129.85]},{ x:'06/19/2024',y:[130.05,130.40,130.05,130.10]},{ x:'06/20/2024',y:[130.55,131.65,130.55,131.45]},{ x:'06/21/2024',y:[127.80,128.40,127.80,128.30]},{ x:'06/24/2024',y:[127.65,127.65,126.40,127.10]},{ x:'06/25/2024',y:[124.35,125.00,124.05,125.00]},{ x:'06/26/2024',y:[127.10,127.45,127.10,127.35]},{ x:'06/27/2024',y:[126.05,126.75,126.05,126.55]},{ x:'06/28/2024',y:[128.60,129.25,128.40,128.85]},{ x:'07/01/2024',y:[127.25,127.40,127.00,127.25]},{ x:'07/02/2024',y:[127.35,127.35,126.90,127.20]},{ x:'07/03/2024',y:[130.40,130.55,130.35,130.55]},{ x:'07/04/2024',y:[132.50,132.70,132.45,132.65]},{ x:'07/05/2024',y:[132.65,132.95,132.55,132.95]},{ x:'07/12/2024',y:[132.95,133.00,132.05,132.40]},{ x:'07/15/2024',y:[134.65,135.10,134.55,135.10]},{ x:'07/16/2024',y:[135.45,135.75,135.35,135.50]},{ x:'07/17/2024',y:[134.65,134.65,133.85,133.85]},{ x:'07/18/2024',y:[128.15,128.25,127.65,128.05]},{ x:'07/19/2024',y:[126.55,126.80,126.55,126.55]},{ x:'07/22/2024',y:[124.85,124.90,123.75,124.35]},{ x:'07/23/2024',y:[126.30,126.85,126.15,126.55]},{ x:'07/26/2024',y:[115.20,116.10,115.00,116.10]},{ x:'07/29/2024',y:[118.20,118.35,117.95,118.30]},{ x:'07/30/2024',y:[116.35,117.00,115.50,116.90]},{ x:'07/31/2024',y:[115.55,116.35,115.35,116.10]},{ x:'08/01/2024',y:[122.50,122.95,122.15,122.70]},{ x:'08/02/2024',y:[113.45,113.60,111.00,112.05]},{ x:'08/05/2024',y:[106.40,106.40,100.10,100.15]},{ x:'08/06/2024',y:[106.30,107.50,105.15,106.15]},{ x:'08/07/2024',y:[104.55,107.50,104.25,107.20]},{ x:'08/08/2024',y:[101.75,103.40,101.35,102.35]},{ x:'08/09/2024',y:[107.85,109.15,107.20,107.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00670l 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());