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:'03/22/2023',y:[119.45,120.90,119.45,120.90]},{ x:'03/23/2023',y:[120.65,122.30,120.45,121.85]},{ x:'03/24/2023',y:[122.00,122.30,121.55,122.20]},{ x:'03/27/2023',y:[121.75,121.90,121.20,121.45]},{ x:'03/28/2023',y:[120.95,121.15,120.20,120.40]},{ x:'03/29/2023',y:[120.65,121.05,120.15,120.60]},{ x:'03/30/2023',y:[121.40,121.70,120.75,121.20]},{ x:'03/31/2023',y:[121.70,122.35,121.40,121.60]},{ x:'04/06/2023',y:[120.85,121.00,120.20,121.00]},{ x:'04/07/2023',y:[121.25,121.45,120.80,121.00]},{ x:'04/10/2023',y:[121.25,121.65,120.90,121.00]},{ x:'04/11/2023',y:[121.00,121.15,120.40,120.85]},{ x:'04/12/2023',y:[120.85,120.85,120.15,120.55]},{ x:'04/13/2023',y:[120.05,120.15,119.50,119.50]},{ x:'04/14/2023',y:[120.00,120.90,119.85,120.65]},{ x:'04/17/2023',y:[120.35,120.50,119.80,120.35]},{ x:'04/18/2023',y:[120.35,120.40,119.75,119.95]},{ x:'04/19/2023',y:[120.00,120.05,118.80,119.05]},{ x:'04/20/2023',y:[118.85,119.40,118.40,118.90]},{ x:'04/21/2023',y:[119.45,119.55,118.50,118.60]},{ x:'04/24/2023',y:[117.80,118.50,117.70,118.15]},{ x:'04/25/2023',y:[118.30,118.30,116.55,116.60]},{ x:'04/26/2023',y:[116.55,116.60,115.65,116.10]},{ x:'04/27/2023',y:[116.05,116.65,115.50,116.00]},{ x:'04/28/2023',y:[116.85,117.55,116.85,117.40]},{ x:'05/02/2023',y:[117.45,118.00,117.10,117.70]},{ x:'05/03/2023',y:[117.35,117.35,116.80,117.20]},{ x:'05/04/2023',y:[117.00,117.50,116.70,117.50]},{ x:'05/05/2023',y:[117.70,118.05,117.40,117.80]},{ x:'05/08/2023',y:[118.50,118.90,118.35,118.55]},{ x:'05/09/2023',y:[118.60,119.00,118.30,118.90]},{ x:'05/10/2023',y:[118.80,118.80,117.65,117.80]},{ x:'05/11/2023',y:[118.25,118.45,117.55,117.55]},{ x:'05/12/2023',y:[117.15,117.50,116.75,117.20]},{ x:'05/15/2023',y:[116.95,117.35,116.65,117.20]},{ x:'05/16/2023',y:[117.90,119.00,117.85,118.60]},{ x:'05/17/2023',y:[118.65,120.70,118.65,120.55]},{ x:'05/18/2023',y:[121.80,122.40,121.60,122.15]},{ x:'05/19/2023',y:[122.60,122.85,122.20,122.50]},{ x:'05/22/2023',y:[122.50,122.65,122.10,122.30]},{ x:'05/23/2023',y:[122.30,122.65,121.80,122.20]},{ x:'05/24/2023',y:[121.65,121.80,121.10,121.60]},{ x:'05/25/2023',y:[123.00,123.40,122.45,123.05]},{ x:'05/26/2023',y:[125.00,126.05,125.00,125.95]},{ x:'05/29/2023',y:[127.45,127.55,126.50,126.75]},{ x:'05/30/2023',y:[126.75,127.05,126.45,126.75]},{ x:'05/31/2023',y:[126.70,126.70,125.15,126.15]},{ x:'06/01/2023',y:[125.35,125.60,124.90,125.15]},{ x:'06/02/2023',y:[125.80,127.00,125.80,126.75]},{ x:'06/05/2023',y:[126.75,126.80,126.25,126.35]},{ x:'06/06/2023',y:[126.35,127.25,126.15,126.70]},{ x:'06/07/2023',y:[127.00,128.25,127.00,128.10]},{ x:'06/08/2023',y:[127.90,128.20,126.55,126.85]},{ x:'06/09/2023',y:[127.50,128.20,127.40,127.80]},{ x:'06/12/2023',y:[128.50,129.30,128.50,129.00]},{ x:'06/13/2023',y:[130.20,131.95,130.20,131.55]},{ x:'06/14/2023',y:[131.40,131.60,131.00,131.50]},{ x:'06/15/2023',y:[131.55,132.00,131.50,131.90]},{ x:'06/16/2023',y:[131.80,131.80,131.10,131.55]},{ x:'06/19/2023',y:[130.95,131.50,130.55,131.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0050 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());