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/02/2022',y:[117.30,117.95,117.00,117.30]},{ x:'12/05/2022',y:[117.30,118.50,117.20,117.45]},{ x:'12/06/2022',y:[116.80,116.80,115.20,115.30]},{ x:'12/07/2022',y:[114.50,115.85,114.20,114.60]},{ x:'12/08/2022',y:[114.05,114.10,112.45,113.25]},{ x:'12/09/2022',y:[114.00,115.25,113.95,115.00]},{ x:'12/12/2022',y:[114.20,114.20,113.25,113.90]},{ x:'12/13/2022',y:[114.50,114.50,113.25,113.40]},{ x:'12/14/2022',y:[114.10,115.00,114.00,114.80]},{ x:'12/15/2022',y:[114.30,115.05,113.90,114.90]},{ x:'12/16/2022',y:[112.50,113.30,112.25,113.00]},{ x:'12/19/2022',y:[112.35,112.95,112.00,112.35]},{ x:'12/20/2022',y:[112.15,112.50,110.05,110.30]},{ 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]} ] }], 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());