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:'08/30/2023',y:[24.75,24.75,23.90,24.25]},{ x:'08/31/2023',y:[24.50,24.50,24.20,24.40]},{ x:'09/01/2023',y:[24.55,24.55,24.35,24.40]},{ x:'09/04/2023',y:[24.45,24.60,24.25,24.35]},{ x:'09/05/2023',y:[24.25,24.60,24.25,24.30]},{ x:'09/06/2023',y:[24.30,24.80,24.30,24.80]},{ x:'09/07/2023',y:[24.65,24.95,23.95,24.00]},{ x:'09/08/2023',y:[23.95,23.95,22.90,22.90]},{ x:'09/11/2023',y:[22.90,23.15,22.45,22.60]},{ x:'09/12/2023',y:[22.70,22.70,22.45,22.45]},{ x:'09/13/2023',y:[22.75,22.75,22.45,22.45]},{ x:'09/14/2023',y:[22.95,22.95,22.35,22.55]},{ x:'09/15/2023',y:[22.55,22.55,22.30,22.30]},{ x:'09/18/2023',y:[22.40,22.50,22.00,22.05]},{ x:'09/19/2023',y:[22.25,22.70,21.95,22.15]},{ x:'09/20/2023',y:[22.30,23.30,22.30,22.80]},{ x:'09/21/2023',y:[22.50,23.25,22.45,22.90]},{ x:'09/22/2023',y:[23.35,23.35,22.50,22.90]},{ x:'09/25/2023',y:[22.90,22.90,22.60,22.60]},{ x:'09/26/2023',y:[22.60,22.80,22.25,22.55]},{ x:'09/27/2023',y:[22.55,22.55,22.10,22.15]},{ x:'09/28/2023',y:[22.20,22.60,21.70,21.70]},{ x:'10/02/2023',y:[21.65,21.85,21.00,21.00]},{ x:'10/03/2023',y:[21.05,21.05,18.90,19.25]},{ x:'10/04/2023',y:[19.00,19.70,18.70,19.70]},{ x:'10/05/2023',y:[19.55,19.55,18.85,19.20]},{ x:'10/06/2023',y:[19.05,19.50,19.00,19.10]},{ x:'10/11/2023',y:[19.30,19.30,18.05,18.20]},{ x:'10/12/2023',y:[18.15,18.40,18.10,18.30]},{ x:'10/13/2023',y:[18.30,18.40,17.80,17.80]},{ x:'10/18/2023',y:[15.60,15.70,15.00,15.70]},{ x:'10/19/2023',y:[15.05,17.25,15.05,17.25]},{ x:'10/20/2023',y:[17.50,17.50,16.55,16.70]},{ x:'10/23/2023',y:[16.70,17.00,16.20,16.70]},{ x:'10/24/2023',y:[16.50,16.60,15.90,16.00]},{ x:'10/25/2023',y:[16.00,16.30,15.50,15.80]},{ x:'10/26/2023',y:[15.75,16.05,15.55,15.70]},{ x:'10/27/2023',y:[15.55,16.10,15.50,15.90]},{ x:'10/31/2023',y:[15.75,15.85,15.35,15.35]},{ x:'11/01/2023',y:[15.45,15.60,14.75,14.90]},{ x:'11/02/2023',y:[14.90,15.00,14.20,14.65]},{ x:'11/03/2023',y:[14.60,15.00,14.50,14.60]},{ x:'11/06/2023',y:[14.60,14.70,14.30,14.40]},{ x:'11/07/2023',y:[14.40,14.70,14.40,14.40]},{ x:'11/08/2023',y:[14.50,14.50,13.40,13.90]},{ x:'11/09/2023',y:[13.90,13.90,13.50,13.65]},{ x:'11/10/2023',y:[13.65,13.90,13.65,13.65]},{ x:'11/13/2023',y:[13.20,13.75,13.20,13.50]},{ x:'11/14/2023',y:[13.70,14.85,13.70,14.85]},{ x:'11/15/2023',y:[14.85,16.00,14.60,15.85]},{ x:'11/16/2023',y:[17.00,17.40,16.50,17.40]},{ x:'11/17/2023',y:[17.75,19.10,17.70,19.10]},{ x:'11/20/2023',y:[19.10,19.10,17.20,18.00]},{ x:'11/21/2023',y:[18.00,18.50,17.45,18.45]},{ x:'11/22/2023',y:[18.70,20.25,18.50,20.10]},{ x:'11/23/2023',y:[20.00,20.50,19.35,20.35]},{ x:'11/24/2023',y:[20.10,21.30,20.10,21.00]},{ x:'11/27/2023',y:[21.05,21.05,18.90,19.00]},{ x:'11/28/2023',y:[18.90,19.00,18.10,18.55]},{ x:'11/29/2023',y:[18.55,18.65,18.15,18.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3521 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());