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:'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]},{ x:'04/29/2024',y:[116.80,117.35,116.80,117.30]},{ x:'04/30/2024',y:[117.80,117.90,117.70,117.85]},{ x:'05/02/2024',y:[115.55,115.95,115.40,115.40]},{ x:'05/03/2024',y:[117.05,117.20,116.10,116.10]},{ x:'05/06/2024',y:[117.35,117.90,117.35,117.85]},{ x:'05/07/2024',y:[118.10,118.70,118.10,118.70]},{ x:'05/08/2024',y:[118.65,118.95,118.35,118.95]},{ x:'05/09/2024',y:[119.50,119.50,119.00,119.05]},{ x:'05/10/2024',y:[119.10,119.10,119.10,119.10]},{ x:'05/13/2024',y:[120.90,121.00,120.75,120.75]},{ x:'05/14/2024',y:[120.80,121.25,120.55,121.25]},{ x:'05/15/2024',y:[123.05,123.40,123.05,123.05]},{ x:'05/16/2024',y:[125.00,125.10,123.60,123.60]},{ x:'05/17/2024',y:[123.60,123.70,123.15,123.30]},{ x:'05/20/2024',y:[123.45,123.45,122.50,122.50]},{ x:'05/21/2024',y:[123.35,123.35,122.65,123.25]},{ x:'05/22/2024',y:[124.85,125.50,124.65,125.45]},{ x:'05/23/2024',y:[126.20,126.70,126.05,126.70]},{ x:'05/24/2024',y:[126.05,126.25,125.85,126.25]},{ x:'06/11/2024',y:[127.80,128.20,127.75,127.90]},{ x:'06/12/2024',y:[128.60,129.55,128.60,129.50]},{ x:'06/13/2024',y:[132.65,132.65,131.45,131.65]},{ x:'06/14/2024',y:[131.65,132.60,131.65,132.60]},{ x:'06/17/2024',y:[132.60,132.60,132.05,132.50]},{ x:'06/18/2024',y:[134.20,134.60,134.10,134.55]},{ x:'06/19/2024',y:[136.50,138.65,136.50,138.65]},{ x:'06/20/2024',y:[138.30,138.70,138.30,138.65]},{ x:'06/21/2024',y:[137.70,138.35,137.70,138.05]},{ x:'06/24/2024',y:[136.40,136.40,134.95,134.95]},{ x:'06/25/2024',y:[133.60,135.15,133.55,135.15]},{ x:'06/26/2024',y:[136.45,136.65,135.95,135.95]},{ x:'06/27/2024',y:[135.30,136.25,135.30,136.25]},{ x:'06/28/2024',y:[136.30,137.60,136.30,137.30]},{ x:'07/01/2024',y:[137.80,138.35,137.40,137.40]},{ x:'07/02/2024',y:[136.90,136.90,136.40,136.40]},{ x:'07/03/2024',y:[137.30,138.45,137.30,138.20]} ] }], 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());