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:'01/13/2023',y:[118.50,118.60,116.95,117.20]},{ x:'01/16/2023',y:[118.10,118.55,118.00,118.10]},{ x:'01/17/2023',y:[118.35,118.35,117.80,118.10]},{ x:'01/30/2023',y:[120.80,121.00,120.00,120.70]},{ x:'01/31/2023',y:[120.60,120.60,118.30,118.30]},{ x:'02/01/2023',y:[119.10,119.45,118.45,119.00]},{ x:'02/02/2023',y:[120.30,121.10,120.25,121.00]},{ x:'02/03/2023',y:[120.95,121.20,120.20,121.00]},{ x:'02/06/2023',y:[120.10,120.10,119.25,119.25]},{ x:'02/07/2023',y:[119.10,119.25,118.55,119.00]},{ x:'02/08/2023',y:[120.10,120.95,120.00,120.85]},{ x:'02/09/2023',y:[120.50,121.00,120.30,120.90]},{ x:'02/10/2023',y:[120.90,121.10,120.60,121.00]},{ x:'02/13/2023',y:[120.70,120.90,119.90,120.75]},{ x:'02/14/2023',y:[121.25,121.80,121.25,121.65]},{ x:'02/15/2023',y:[119.95,120.25,118.80,118.85]},{ x:'02/16/2023',y:[119.30,120.50,119.30,120.30]},{ x:'02/17/2023',y:[119.30,119.30,118.40,118.75]},{ x:'02/20/2023',y:[118.55,119.35,118.10,119.00]},{ x:'02/21/2023',y:[119.00,119.10,118.55,118.95]},{ x:'02/22/2023',y:[117.50,117.75,117.10,117.65]},{ x:'02/23/2023',y:[117.95,119.80,117.95,119.40]},{ x:'02/24/2023',y:[119.90,120.10,118.80,118.80]},{ x:'03/01/2023',y:[117.30,119.45,116.85,119.35]},{ x:'03/02/2023',y:[119.35,119.35,118.30,119.25]},{ x:'03/03/2023',y:[119.80,120.10,119.20,119.35]},{ x:'03/06/2023',y:[120.15,120.90,119.90,120.50]},{ x:'03/07/2023',y:[120.55,121.40,120.20,121.30]},{ x:'03/08/2023',y:[120.50,120.60,119.80,120.30]},{ x:'03/09/2023',y:[120.75,120.80,120.20,120.20]},{ x:'03/10/2023',y:[118.85,118.95,118.00,118.30]},{ x:'03/13/2023',y:[117.95,119.10,117.40,118.80]},{ x:'03/14/2023',y:[117.55,117.95,117.15,117.50]},{ x:'03/15/2023',y:[118.40,118.70,117.45,117.60]},{ x:'03/16/2023',y:[117.20,117.40,116.50,117.05]},{ x:'03/17/2023',y:[117.85,118.95,117.80,118.95]},{ x:'03/20/2023',y:[118.95,119.05,117.85,118.10]},{ x:'03/21/2023',y:[118.50,118.75,118.20,118.65]},{ 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]} ] }], 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());