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:'06/20/2023',y:[131.10,131.25,130.35,130.55]},{ x:'06/21/2023',y:[130.55,131.05,130.25,130.55]},{ x:'06/26/2023',y:[130.35,130.35,129.40,129.75]},{ x:'06/27/2023',y:[129.15,129.55,128.70,128.90]},{ x:'06/28/2023',y:[129.35,129.70,128.80,129.10]},{ x:'06/29/2023',y:[129.75,130.50,128.90,129.05]},{ x:'06/30/2023',y:[128.80,129.10,128.30,129.10]},{ x:'07/03/2023',y:[129.60,130.70,129.60,130.70]},{ x:'07/04/2023',y:[130.75,131.15,130.55,131.00]},{ x:'07/05/2023',y:[131.00,131.20,130.40,130.80]},{ x:'07/06/2023',y:[129.70,129.70,127.70,127.90]},{ x:'07/07/2023',y:[127.55,128.30,127.10,127.70]},{ x:'07/10/2023',y:[128.10,128.50,127.00,127.45]},{ x:'07/11/2023',y:[128.00,129.20,128.00,129.20]},{ x:'07/12/2023',y:[129.30,129.45,128.85,129.45]},{ x:'07/13/2023',y:[131.30,131.90,130.85,130.90]},{ x:'07/14/2023',y:[131.45,132.50,131.45,132.25]},{ x:'07/17/2023',y:[132.00,132.20,131.75,132.00]},{ x:'07/18/2023',y:[131.00,131.00,129.70,129.85]},{ x:'07/19/2023',y:[130.15,130.50,128.75,128.75]},{ x:'07/20/2023',y:[129.05,129.70,129.00,129.35]},{ x:'07/21/2023',y:[127.40,127.40,126.50,127.20]},{ x:'07/24/2023',y:[127.00,127.65,126.60,127.25]},{ x:'07/25/2023',y:[127.70,129.20,127.70,128.85]},{ x:'07/26/2023',y:[129.10,129.20,128.35,128.50]},{ x:'07/27/2023',y:[129.15,129.50,129.00,129.50]},{ x:'07/28/2023',y:[129.40,129.90,129.00,129.50]},{ x:'07/31/2023',y:[130.30,130.65,128.25,128.80]},{ x:'08/01/2023',y:[129.00,129.55,128.85,129.45]},{ x:'08/02/2023',y:[129.40,129.45,127.45,127.85]},{ x:'08/04/2023',y:[127.25,127.50,126.90,127.25]},{ x:'08/07/2023',y:[127.65,128.70,127.55,128.50]},{ x:'08/08/2023',y:[128.10,128.20,126.40,127.00]},{ x:'08/09/2023',y:[126.80,127.65,126.65,127.20]},{ x:'08/10/2023',y:[126.90,127.00,126.30,126.40]},{ x:'08/11/2023',y:[127.00,127.35,126.15,126.30]},{ x:'08/14/2023',y:[125.65,125.70,124.10,124.50]},{ x:'08/15/2023',y:[125.25,125.45,124.60,124.70]},{ x:'08/16/2023',y:[124.15,124.40,123.60,124.05]},{ x:'08/17/2023',y:[123.60,124.65,122.90,124.60]},{ x:'08/18/2023',y:[124.20,124.80,123.70,123.85]},{ x:'08/21/2023',y:[124.20,124.45,123.00,123.00]},{ x:'08/22/2023',y:[124.00,124.35,123.70,124.00]},{ x:'08/23/2023',y:[124.00,125.15,124.00,124.85]},{ x:'08/24/2023',y:[126.40,127.10,126.25,127.00]},{ x:'08/25/2023',y:[125.50,125.50,124.50,124.55]},{ x:'08/28/2023',y:[124.85,125.70,124.75,125.35]},{ x:'08/29/2023',y:[126.00,126.05,124.70,126.05]},{ x:'08/30/2023',y:[126.75,127.05,126.10,126.60]},{ x:'08/31/2023',y:[126.55,126.55,125.50,125.70]},{ x:'09/01/2023',y:[125.50,126.30,125.10,125.90]},{ x:'09/04/2023',y:[125.90,126.80,125.60,126.75]},{ x:'09/05/2023',y:[126.55,126.60,126.05,126.45]},{ x:'09/06/2023',y:[126.60,126.70,125.85,126.00]},{ x:'09/07/2023',y:[125.30,125.50,124.70,124.85]},{ x:'09/08/2023',y:[124.10,124.50,123.85,124.30]},{ x:'09/11/2023',y:[124.45,124.50,123.40,123.80]},{ x:'09/12/2023',y:[124.10,125.05,123.85,125.05]},{ x:'09/13/2023',y:[125.20,125.60,124.70,125.20]},{ x:'09/14/2023',y:[125.90,126.95,125.55,126.95]} ] }], 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());