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/14/2023',y:[108.25,109.70,108.15,109.45]},{ x:'04/17/2023',y:[108.65,109.00,108.65,109.00]},{ x:'04/18/2023',y:[108.60,108.65,108.45,108.45]},{ x:'04/19/2023',y:[108.75,108.80,107.30,107.30]},{ x:'04/20/2023',y:[106.75,107.10,106.05,106.45]},{ x:'04/21/2023',y:[106.15,106.20,104.95,104.95]},{ x:'04/24/2023',y:[104.95,105.45,104.95,105.25]},{ x:'04/25/2023',y:[104.50,104.50,101.80,101.80]},{ x:'04/26/2023',y:[101.65,101.90,101.40,101.65]},{ x:'04/27/2023',y:[102.65,102.75,102.10,102.10]},{ x:'04/28/2023',y:[103.80,104.35,103.60,103.60]},{ x:'05/02/2023',y:[104.50,105.50,104.20,105.20]},{ x:'05/03/2023',y:[103.95,104.40,103.95,104.40]},{ x:'05/04/2023',y:[103.60,105.00,103.60,105.00]},{ x:'05/05/2023',y:[105.65,105.65,104.95,105.20]},{ x:'05/08/2023',y:[106.55,106.60,106.25,106.40]},{ x:'05/09/2023',y:[105.65,106.40,105.40,106.35]},{ x:'05/10/2023',y:[104.90,105.15,104.50,105.15]},{ x:'05/11/2023',y:[105.40,105.40,103.60,103.60]},{ x:'05/12/2023',y:[102.70,104.00,102.70,104.00]},{ x:'05/15/2023',y:[102.85,103.20,102.55,102.85]},{ x:'05/16/2023',y:[104.95,106.30,104.95,106.15]},{ x:'05/17/2023',y:[106.80,109.70,106.75,109.60]},{ x:'05/18/2023',y:[111.15,112.40,110.75,112.10]},{ x:'05/19/2023',y:[113.00,113.00,112.55,112.85]},{ x:'05/22/2023',y:[113.35,113.35,112.80,112.90]},{ x:'05/23/2023',y:[112.90,113.25,112.90,113.05]},{ x:'05/24/2023',y:[112.20,112.20,111.25,111.45]},{ x:'05/25/2023',y:[114.20,114.20,113.10,113.90]},{ x:'05/26/2023',y:[116.70,117.50,116.70,117.35]},{ x:'05/29/2023',y:[119.45,119.85,119.00,119.40]},{ x:'05/30/2023',y:[119.40,119.65,119.00,119.00]},{ x:'05/31/2023',y:[119.00,119.00,119.00,119.00]},{ x:'06/01/2023',y:[117.80,117.80,117.70,117.75]},{ x:'06/02/2023',y:[119.35,120.40,119.35,120.40]},{ x:'06/05/2023',y:[121.35,121.45,121.00,121.00]},{ x:'06/06/2023',y:[122.05,122.05,122.05,122.05]},{ x:'06/07/2023',y:[123.70,123.70,123.70,123.70]},{ x:'06/08/2023',y:[123.00,123.30,120.65,120.65]},{ x:'06/09/2023',y:[123.20,123.40,123.10,123.40]},{ x:'06/12/2023',y:[124.60,124.60,124.50,124.60]},{ x:'06/13/2023',y:[129.20,129.20,128.50,128.50]},{ x:'06/14/2023',y:[127.50,127.90,127.50,127.90]},{ x:'06/15/2023',y:[129.85,129.90,129.85,129.90]},{ x:'06/16/2023',y:[129.60,129.80,129.45,129.80]},{ x:'06/19/2023',y:[128.20,128.60,128.20,128.60]},{ x:'06/20/2023',y:[127.20,127.85,127.20,127.85]},{ x:'06/21/2023',y:[127.60,128.60,127.55,128.60]},{ x:'06/26/2023',y:[125.70,126.25,125.70,126.05]},{ x:'06/27/2023',y:[124.65,124.70,124.65,124.70]},{ x:'06/28/2023',y:[124.70,124.70,124.10,124.15]},{ x:'06/29/2023',y:[126.20,126.20,124.55,124.55]},{ x:'06/30/2023',y:[124.15,125.20,124.15,125.20]},{ x:'07/03/2023',y:[126.75,128.35,126.65,128.30]},{ x:'07/04/2023',y:[128.20,129.30,127.95,129.30]},{ x:'07/05/2023',y:[128.60,128.75,127.90,127.90]},{ x:'07/06/2023',y:[125.55,126.25,123.00,123.50]},{ x:'07/07/2023',y:[122.65,123.45,122.15,122.35]},{ x:'07/10/2023',y:[122.75,123.35,121.60,122.65]},{ x:'07/11/2023',y:[124.40,125.85,124.25,125.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00663l 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());