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:'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]},{ x:'07/04/2024',y:[141.20,141.25,140.90,141.25]},{ x:'07/05/2024',y:[141.25,141.25,140.80,141.05]},{ x:'07/12/2024',y:[145.40,145.40,144.25,144.25]},{ x:'07/15/2024',y:[144.85,144.85,144.25,144.55]},{ x:'07/16/2024',y:[145.10,145.10,144.70,144.95]},{ x:'07/17/2024',y:[144.45,144.45,143.55,143.55]},{ x:'07/18/2024',y:[139.90,140.70,139.90,139.95]},{ x:'07/19/2024',y:[139.75,139.75,137.70,137.70]},{ x:'07/22/2024',y:[136.35,136.35,133.25,133.40]},{ x:'07/23/2024',y:[135.50,137.40,135.50,137.40]},{ x:'07/26/2024',y:[132.15,132.25,131.75,132.20]},{ x:'07/29/2024',y:[134.35,134.35,132.85,133.25]},{ x:'07/30/2024',y:[131.80,133.25,131.20,133.25]},{ x:'07/31/2024',y:[132.70,133.10,132.50,133.10]},{ x:'08/01/2024',y:[135.15,135.85,135.15,135.85]},{ x:'08/02/2024',y:[131.45,131.85,130.25,130.25]},{ x:'08/05/2024',y:[122.40,122.40,118.15,118.30]},{ x:'08/06/2024',y:[123.35,125.05,119.00,123.95]},{ x:'08/07/2024',y:[125.60,128.50,125.35,128.50]},{ x:'08/08/2024',y:[125.85,126.85,125.20,126.65]},{ x:'08/09/2024',y:[129.80,130.35,129.80,130.35]},{ x:'08/12/2024',y:[132.15,132.15,131.90,132.10]},{ x:'08/13/2024',y:[131.95,132.20,131.70,131.75]},{ x:'08/14/2024',y:[133.50,134.25,133.50,133.50]},{ x:'08/15/2024',y:[132.55,133.30,132.55,133.15]} ] }], 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());