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/17/2024',y:[14.30,14.50,14.30,14.40]},{ x:'04/18/2024',y:[14.40,14.45,14.20,14.25]},{ x:'04/19/2024',y:[14.20,14.25,13.60,13.90]},{ x:'04/22/2024',y:[14.00,14.40,13.90,14.05]},{ x:'04/23/2024',y:[14.15,15.35,14.15,15.05]},{ x:'04/24/2024',y:[14.85,15.05,14.70,15.00]},{ x:'04/25/2024',y:[15.00,15.35,14.90,15.15]},{ x:'04/26/2024',y:[15.30,15.30,15.10,15.20]},{ x:'04/29/2024',y:[15.50,15.75,15.25,15.45]},{ x:'04/30/2024',y:[15.50,15.50,15.05,15.25]},{ x:'05/02/2024',y:[15.10,15.20,15.05,15.10]},{ x:'05/03/2024',y:[15.20,15.35,15.00,15.10]},{ x:'05/06/2024',y:[15.20,15.30,15.00,15.05]},{ x:'05/07/2024',y:[15.15,15.25,14.95,15.05]},{ x:'05/08/2024',y:[15.00,15.00,14.75,15.00]},{ x:'05/09/2024',y:[15.55,16.35,15.35,15.60]},{ x:'05/10/2024',y:[16.15,16.20,15.60,15.70]},{ x:'05/13/2024',y:[15.95,16.30,15.70,16.05]},{ x:'05/14/2024',y:[16.20,16.30,15.90,15.95]},{ x:'05/15/2024',y:[16.05,16.40,15.85,15.90]},{ x:'05/16/2024',y:[16.05,17.45,16.05,17.45]},{ x:'05/17/2024',y:[17.65,18.50,17.35,18.05]},{ x:'05/20/2024',y:[17.80,18.80,17.30,18.10]},{ x:'05/21/2024',y:[18.45,19.00,17.95,18.90]},{ x:'05/22/2024',y:[18.90,18.95,17.90,17.95]},{ x:'05/23/2024',y:[17.95,17.95,17.50,17.60]},{ x:'05/24/2024',y:[17.60,19.35,17.45,19.35]},{ x:'06/11/2024',y:[19.55,20.20,19.25,19.35]},{ x:'06/12/2024',y:[19.45,19.50,19.00,19.25]},{ x:'06/13/2024',y:[19.35,19.55,19.15,19.25]},{ x:'06/14/2024',y:[19.40,19.85,19.30,19.40]},{ x:'06/17/2024',y:[19.40,20.10,19.30,19.70]},{ x:'06/18/2024',y:[19.80,19.80,19.25,19.55]},{ x:'06/19/2024',y:[19.60,19.75,19.00,19.10]},{ x:'06/20/2024',y:[19.05,19.30,19.00,19.20]},{ x:'06/21/2024',y:[19.25,21.10,19.25,20.50]},{ x:'06/24/2024',y:[20.50,21.00,20.00,20.00]},{ x:'06/25/2024',y:[20.00,20.30,19.40,19.95]},{ x:'06/26/2024',y:[19.90,20.35,19.60,19.60]},{ x:'06/27/2024',y:[19.65,21.05,19.40,20.40]},{ x:'06/28/2024',y:[20.65,20.90,20.35,20.60]},{ x:'07/01/2024',y:[20.70,20.75,20.20,20.40]},{ x:'07/02/2024',y:[20.40,20.70,20.35,20.60]},{ x:'07/03/2024',y:[20.95,21.00,20.25,20.30]},{ x:'07/04/2024',y:[20.45,20.55,20.10,20.15]},{ x:'07/05/2024',y:[20.25,21.80,20.25,20.90]},{ x:'07/12/2024',y:[22.95,24.50,22.55,24.50]},{ x:'07/15/2024',y:[26.65,26.95,25.05,26.00]},{ x:'07/16/2024',y:[26.05,26.60,25.00,25.25]},{ x:'07/17/2024',y:[25.30,26.40,25.05,25.80]},{ x:'07/18/2024',y:[25.30,25.40,24.30,24.55]},{ x:'07/19/2024',y:[24.60,24.75,23.50,23.50]},{ x:'07/22/2024',y:[23.75,24.05,22.20,22.40]},{ x:'07/23/2024',y:[22.80,23.40,21.80,22.20]},{ x:'07/26/2024',y:[21.40,21.75,20.50,21.20]},{ x:'07/29/2024',y:[21.50,21.85,21.10,21.35]},{ x:'07/30/2024',y:[21.35,22.35,21.05,22.10]},{ x:'07/31/2024',y:[21.55,22.05,21.20,21.30]},{ x:'08/01/2024',y:[21.60,22.35,21.55,22.00]},{ x:'08/02/2024',y:[21.50,21.75,21.20,21.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2489 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());