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:'05/20/2022',y:[24.00,24.70,23.80,24.45]},{ x:'05/23/2022',y:[24.50,24.80,24.15,24.25]},{ x:'05/24/2022',y:[24.45,25.20,24.15,24.80]},{ x:'05/25/2022',y:[25.70,26.00,24.60,24.80]},{ x:'05/26/2022',y:[24.55,24.60,23.65,23.75]},{ x:'05/27/2022',y:[24.10,24.30,23.80,24.20]},{ x:'05/30/2022',y:[24.40,25.80,24.05,25.45]},{ x:'05/31/2022',y:[25.60,26.10,24.80,25.25]},{ x:'06/01/2022',y:[25.10,25.45,24.80,24.80]},{ x:'06/02/2022',y:[24.80,25.00,24.40,24.95]},{ x:'06/06/2022',y:[25.45,25.60,24.90,24.90]},{ x:'06/07/2022',y:[24.65,25.40,24.65,25.00]},{ x:'06/08/2022',y:[25.00,25.10,24.75,24.90]},{ x:'06/09/2022',y:[24.75,24.85,24.25,24.30]},{ x:'06/10/2022',y:[23.85,24.65,23.85,24.50]},{ x:'06/13/2022',y:[24.05,24.25,23.90,24.05]},{ x:'06/14/2022',y:[23.90,24.30,23.50,24.20]},{ x:'06/15/2022',y:[24.25,24.65,24.10,24.15]},{ x:'06/16/2022',y:[24.60,24.60,23.50,23.55]},{ x:'06/17/2022',y:[22.90,23.60,22.90,23.30]},{ x:'06/20/2022',y:[23.35,23.65,22.50,22.50]},{ x:'06/21/2022',y:[23.00,23.85,22.85,23.80]},{ x:'06/22/2022',y:[24.00,24.40,23.65,23.75]},{ x:'06/23/2022',y:[24.20,24.65,23.85,24.10]},{ x:'06/24/2022',y:[24.50,24.75,24.10,24.15]},{ x:'06/27/2022',y:[24.50,24.65,24.35,24.50]},{ x:'06/28/2022',y:[24.60,25.20,24.40,25.00]},{ x:'06/29/2022',y:[25.20,25.60,24.70,25.40]},{ x:'06/30/2022',y:[25.45,25.60,24.20,24.40]},{ x:'07/01/2022',y:[24.50,24.55,23.20,23.20]},{ x:'07/04/2022',y:[23.50,23.70,22.90,23.40]},{ x:'07/05/2022',y:[23.80,23.90,21.55,22.20]},{ x:'07/06/2022',y:[21.80,22.15,20.00,20.00]},{ x:'07/07/2022',y:[19.85,19.90,18.80,19.40]},{ x:'07/08/2022',y:[19.85,20.20,19.50,19.70]},{ x:'07/11/2022',y:[19.85,19.85,19.50,19.50]},{ x:'07/12/2022',y:[18.95,18.95,17.85,17.95]},{ x:'07/13/2022',y:[18.55,19.05,18.45,18.70]},{ x:'07/14/2022',y:[18.80,19.30,18.40,19.20]},{ x:'07/15/2022',y:[19.20,19.60,19.10,19.60]},{ x:'07/18/2022',y:[19.60,20.20,19.50,20.15]},{ x:'07/19/2022',y:[20.35,20.55,20.10,20.55]},{ x:'07/20/2022',y:[20.90,21.10,20.65,20.80]},{ x:'07/21/2022',y:[21.00,21.15,20.80,21.00]},{ x:'07/22/2022',y:[21.10,21.40,21.00,21.15]},{ x:'07/25/2022',y:[21.25,21.40,20.60,20.95]},{ x:'07/26/2022',y:[21.00,21.00,20.30,20.50]},{ x:'07/27/2022',y:[20.45,20.80,20.25,20.80]},{ x:'07/28/2022',y:[21.15,21.15,20.70,20.75]},{ x:'07/29/2022',y:[20.85,21.40,20.65,20.85]},{ x:'08/01/2022',y:[20.60,20.65,20.00,20.15]},{ x:'08/02/2022',y:[20.00,20.15,19.70,19.95]},{ x:'08/03/2022',y:[20.05,20.10,19.60,19.85]},{ x:'08/04/2022',y:[19.90,19.90,19.00,19.20]},{ x:'08/05/2022',y:[19.60,20.10,19.60,19.90]},{ x:'08/08/2022',y:[19.75,19.85,19.40,19.75]},{ x:'08/09/2022',y:[19.75,20.00,19.50,19.85]},{ x:'08/10/2022',y:[19.65,20.65,19.65,20.40]},{ x:'08/11/2022',y:[20.75,20.85,20.20,20.20]},{ x:'08/12/2022',y:[20.25,20.35,20.10,20.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6251 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());