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:'12/21/2022',y:[110.80,111.40,110.30,110.75]},{ x:'12/22/2022',y:[111.75,112.75,111.75,112.60]},{ x:'12/23/2022',y:[110.70,111.05,110.40,110.70]},{ x:'12/26/2022',y:[110.80,111.20,110.70,111.10]},{ x:'12/27/2022',y:[111.40,112.25,111.40,111.60]},{ x:'12/28/2022',y:[110.50,110.50,109.40,110.00]},{ x:'12/29/2022',y:[109.20,109.60,108.40,109.50]},{ x:'12/30/2022',y:[110.60,110.75,110.20,110.20]},{ x:'01/03/2023',y:[109.60,110.90,108.45,110.75]},{ x:'01/04/2023',y:[110.30,110.80,110.10,110.50]},{ x:'01/05/2023',y:[111.25,111.70,110.95,111.30]},{ x:'01/06/2023',y:[111.20,112.20,111.15,111.80]},{ x:'01/09/2023',y:[114.00,115.80,113.90,115.80]},{ x:'01/10/2023',y:[115.95,116.40,115.75,116.25]},{ x:'01/11/2023',y:[116.65,116.75,115.90,116.35]},{ x:'01/12/2023',y:[116.50,116.60,115.65,115.85]},{ 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]} ] }], 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());