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:'11/10/2022',y:[103.45,103.85,103.20,103.50]},{ x:'11/11/2022',y:[108.55,109.00,107.80,109.00]},{ x:'11/14/2022',y:[109.80,110.40,109.40,110.00]},{ x:'11/15/2022',y:[111.20,114.95,111.20,114.70]},{ x:'11/16/2022',y:[115.00,115.75,113.85,114.50]},{ x:'11/17/2022',y:[113.95,114.65,112.85,114.55]},{ x:'11/18/2022',y:[114.90,115.85,114.05,114.25]},{ x:'11/21/2022',y:[114.35,114.65,113.70,113.85]},{ x:'11/22/2022',y:[113.40,115.00,113.05,114.80]},{ x:'11/23/2022',y:[115.65,115.90,115.05,115.60]},{ x:'11/24/2022',y:[116.00,116.85,115.90,116.70]},{ x:'11/25/2022',y:[116.65,116.95,116.35,116.70]},{ x:'11/28/2022',y:[114.60,115.30,113.90,114.35]},{ x:'11/29/2022',y:[113.85,115.40,113.10,115.40]},{ x:'11/30/2022',y:[115.10,116.40,114.85,116.35]},{ x:'12/01/2022',y:[119.20,119.50,118.00,118.35]},{ 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]} ] }], 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());