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/22/2024',y:[100.65,100.65,100.65,100.65]},{ x:'01/23/2024',y:[100.70,100.70,100.55,100.55]},{ x:'01/24/2024',y:[100.80,100.80,100.80,100.80]},{ x:'01/25/2024',y:[101.40,101.90,101.40,101.90]},{ x:'01/26/2024',y:[101.35,102.10,101.35,102.00]},{ x:'01/29/2024',y:[102.45,102.45,102.45,102.45]},{ x:'01/30/2024',y:[102.25,102.65,102.10,102.40]},{ x:'01/31/2024',y:[101.50,101.50,101.30,101.30]},{ x:'02/01/2024',y:[100.40,100.60,100.30,100.50]},{ x:'02/02/2024',y:[101.30,101.30,101.25,101.25]},{ x:'02/05/2024',y:[101.80,102.40,101.80,102.40]},{ x:'02/15/2024',y:[106.15,106.50,106.15,106.50]},{ x:'02/16/2024',y:[106.55,106.55,105.75,105.90]},{ x:'02/19/2024',y:[105.35,105.60,105.35,105.60]},{ x:'02/20/2024',y:[105.95,106.30,105.95,106.30]},{ x:'02/21/2024',y:[105.65,105.90,105.60,105.60]},{ x:'02/22/2024',y:[106.85,106.90,106.85,106.90]},{ x:'02/23/2024',y:[107.80,107.80,107.40,107.75]},{ x:'02/26/2024',y:[107.55,107.55,107.00,107.55]},{ x:'02/27/2024',y:[107.75,107.90,106.65,106.95]},{ x:'02/29/2024',y:[106.75,107.10,106.75,107.10]},{ x:'03/01/2024',y:[107.70,107.70,107.20,107.20]},{ x:'03/04/2024',y:[109.65,110.00,109.65,110.00]},{ x:'03/05/2024',y:[110.50,111.05,110.50,111.00]},{ x:'03/06/2024',y:[109.90,111.35,109.90,111.35]},{ x:'03/07/2024',y:[113.40,113.50,113.00,113.50]},{ x:'03/08/2024',y:[115.85,115.85,114.60,114.85]},{ x:'03/11/2024',y:[113.55,113.65,113.55,113.65]},{ x:'03/12/2024',y:[114.00,114.60,113.65,114.60]},{ x:'03/13/2024',y:[115.85,115.90,115.05,115.05]},{ x:'03/14/2024',y:[114.35,115.30,114.35,115.30]},{ x:'03/15/2024',y:[114.60,114.60,114.30,114.30]},{ x:'03/18/2024',y:[114.00,114.30,114.00,114.30]},{ x:'03/19/2024',y:[113.90,114.75,113.90,114.75]},{ x:'03/20/2024',y:[115.10,115.10,114.40,114.40]},{ x:'03/21/2024',y:[115.90,116.55,115.90,116.55]},{ x:'03/22/2024',y:[117.05,117.05,116.50,116.50]},{ x:'03/25/2024',y:[116.50,116.80,116.10,116.30]},{ x:'03/26/2024',y:[117.35,117.50,116.35,116.50]},{ x:'03/27/2024',y:[116.25,116.45,116.20,116.45]},{ x:'03/28/2024',y:[115.80,116.05,115.60,116.05]},{ x:'03/29/2024',y:[116.85,116.85,116.85,116.85]},{ x:'04/01/2024',y:[117.85,117.85,116.15,116.15]},{ x:'04/02/2024',y:[117.50,117.75,117.50,117.75]},{ x:'04/03/2024',y:[117.25,117.40,117.00,117.25]},{ x:'04/08/2024',y:[117.45,117.80,117.45,117.80]},{ x:'04/09/2024',y:[119.00,120.15,119.00,120.05]},{ x:'04/10/2024',y:[120.20,120.20,120.20,120.20]},{ x:'04/11/2024',y:[119.90,119.90,119.40,119.55]},{ x:'04/12/2024',y:[119.85,120.05,119.85,120.05]},{ x:'04/15/2024',y:[118.45,118.60,117.70,117.70]},{ x:'04/16/2024',y:[116.95,116.95,114.65,114.65]},{ x:'04/17/2024',y:[115.85,116.50,115.85,116.50]},{ x:'04/18/2024',y:[115.55,116.90,115.55,116.75]},{ x:'04/19/2024',y:[112.85,112.85,111.10,111.40]},{ x:'04/22/2024',y:[110.80,111.60,110.80,111.45]},{ x:'04/23/2024',y:[112.25,112.40,112.15,112.40]},{ x:'04/24/2024',y:[114.45,115.35,114.45,115.35]},{ x:'04/25/2024',y:[114.15,114.25,113.45,113.45]},{ x:'04/26/2024',y:[115.80,116.00,115.60,116.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0057 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());