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/29/2024',y:[16.80,18.05,16.45,18.05]},{ x:'04/30/2024',y:[17.95,17.95,16.80,17.40]},{ x:'05/02/2024',y:[17.30,19.10,17.30,19.10]},{ x:'05/03/2024',y:[18.70,19.75,18.45,19.00]},{ x:'05/06/2024',y:[19.20,19.20,18.20,18.25]},{ x:'05/07/2024',y:[18.25,18.80,17.35,17.95]},{ x:'05/08/2024',y:[18.00,18.50,17.40,17.50]},{ x:'05/09/2024',y:[18.00,18.80,17.55,17.55]},{ x:'05/10/2024',y:[17.75,17.90,16.90,16.90]},{ x:'05/13/2024',y:[16.80,16.80,15.85,16.10]},{ x:'05/14/2024',y:[16.00,16.30,15.80,15.80]},{ x:'05/15/2024',y:[16.00,16.25,15.60,15.95]},{ x:'05/16/2024',y:[16.05,17.50,16.05,17.50]},{ x:'05/17/2024',y:[17.75,18.25,17.10,17.90]},{ x:'05/20/2024',y:[18.10,18.60,17.50,17.70]},{ x:'05/21/2024',y:[18.05,18.10,17.20,17.20]},{ x:'05/22/2024',y:[17.40,17.90,17.10,17.70]},{ x:'05/23/2024',y:[17.70,17.80,16.60,16.70]},{ x:'05/24/2024',y:[16.70,17.25,16.45,17.05]},{ x:'06/11/2024',y:[24.20,25.55,23.55,24.75]},{ x:'06/12/2024',y:[24.90,25.20,23.60,23.85]},{ x:'06/13/2024',y:[23.65,25.25,23.30,24.90]},{ x:'06/14/2024',y:[25.30,25.75,24.20,24.20]},{ x:'06/17/2024',y:[24.50,24.70,22.90,22.90]},{ x:'06/18/2024',y:[22.90,23.25,22.60,22.70]},{ x:'06/19/2024',y:[22.85,23.10,22.00,22.20]},{ x:'06/20/2024',y:[22.20,22.60,21.50,21.75]},{ x:'06/21/2024',y:[21.80,22.20,21.45,21.45]},{ x:'06/24/2024',y:[21.45,22.90,21.35,21.40]},{ x:'06/25/2024',y:[21.45,22.30,21.45,21.45]},{ x:'06/26/2024',y:[21.65,21.95,20.35,20.45]},{ x:'06/27/2024',y:[20.20,20.30,19.85,20.10]},{ x:'06/28/2024',y:[20.15,21.00,20.10,20.20]},{ x:'07/01/2024',y:[20.15,21.80,19.95,21.25]},{ x:'07/02/2024',y:[21.15,21.70,21.10,21.55]},{ x:'07/03/2024',y:[21.50,21.80,21.10,21.20]},{ x:'07/04/2024',y:[21.50,21.95,20.90,20.90]},{ x:'07/05/2024',y:[21.10,21.20,20.80,20.85]},{ x:'07/12/2024',y:[23.45,24.00,22.60,22.75]},{ x:'07/15/2024',y:[22.75,25.00,22.35,25.00]},{ x:'07/16/2024',y:[25.60,27.50,25.40,27.50]},{ x:'07/17/2024',y:[28.50,29.75,26.65,27.30]},{ x:'07/18/2024',y:[27.25,27.75,26.10,27.65]},{ x:'07/19/2024',y:[27.95,28.45,25.90,26.05]},{ x:'07/22/2024',y:[26.50,26.50,24.05,24.35]},{ x:'07/23/2024',y:[24.75,25.80,24.40,24.50]},{ x:'07/26/2024',y:[23.85,25.30,23.80,24.25]},{ x:'07/29/2024',y:[24.65,26.40,23.90,23.90]},{ x:'07/30/2024',y:[24.05,25.80,23.50,25.40]},{ x:'07/31/2024',y:[25.30,25.90,24.50,24.50]},{ x:'08/01/2024',y:[24.50,25.95,24.25,25.25]},{ x:'08/02/2024',y:[24.60,25.20,23.55,23.75]},{ x:'08/05/2024',y:[22.85,22.95,21.40,21.40]},{ x:'08/06/2024',y:[21.45,22.00,19.30,19.45]},{ x:'08/07/2024',y:[19.75,21.35,19.65,21.35]},{ x:'08/08/2024',y:[21.65,22.20,20.85,21.40]},{ x:'08/09/2024',y:[22.40,22.75,21.80,22.00]},{ x:'08/12/2024',y:[22.15,23.40,22.00,22.55]},{ x:'08/13/2024',y:[22.60,22.90,22.10,22.70]},{ x:'08/14/2024',y:[22.80,23.65,22.80,23.05]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2537 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());