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.40,14.55,14.40,14.50]},{ x:'04/18/2024',y:[14.50,14.95,14.35,14.85]},{ x:'04/19/2024',y:[14.70,14.75,14.15,14.40]},{ x:'04/22/2024',y:[14.50,14.70,14.40,14.45]},{ x:'04/23/2024',y:[14.55,14.70,14.50,14.65]},{ x:'04/24/2024',y:[14.75,14.80,14.65,14.70]},{ x:'04/25/2024',y:[14.65,14.65,14.50,14.50]},{ x:'04/26/2024',y:[14.60,14.70,14.55,14.60]},{ x:'04/29/2024',y:[14.70,14.85,14.65,14.80]},{ x:'04/30/2024',y:[14.85,14.85,14.65,14.65]},{ x:'05/02/2024',y:[14.65,14.70,14.55,14.60]},{ x:'05/03/2024',y:[14.70,14.75,14.60,14.60]},{ x:'05/06/2024',y:[14.75,14.80,14.65,14.70]},{ x:'05/07/2024',y:[14.85,15.15,14.60,15.00]},{ x:'05/08/2024',y:[15.15,15.30,14.80,14.80]},{ x:'05/09/2024',y:[14.80,15.00,14.65,14.65]},{ x:'05/10/2024',y:[14.80,14.95,14.75,14.95]},{ x:'05/13/2024',y:[15.05,15.40,14.95,15.35]},{ x:'05/14/2024',y:[15.40,15.50,15.20,15.35]},{ x:'05/15/2024',y:[15.80,16.50,15.75,16.00]},{ x:'05/16/2024',y:[16.35,16.35,16.10,16.10]},{ x:'05/17/2024',y:[16.25,16.35,15.80,16.30]},{ x:'05/20/2024',y:[16.40,16.40,16.15,16.40]},{ x:'05/21/2024',y:[16.40,16.85,16.20,16.70]},{ x:'05/22/2024',y:[16.75,17.00,16.65,16.75]},{ x:'05/23/2024',y:[16.80,16.90,16.40,16.45]},{ x:'05/24/2024',y:[16.45,16.70,16.35,16.45]},{ x:'06/11/2024',y:[17.60,17.85,17.15,17.20]},{ x:'06/12/2024',y:[17.35,17.50,17.05,17.30]},{ x:'06/13/2024',y:[17.50,17.80,17.30,17.40]},{ x:'06/14/2024',y:[17.55,18.65,17.50,18.40]},{ x:'06/17/2024',y:[18.60,18.70,18.10,18.25]},{ x:'06/18/2024',y:[18.50,18.50,18.05,18.10]},{ x:'06/19/2024',y:[18.20,18.50,18.10,18.10]},{ x:'06/20/2024',y:[18.30,18.45,18.15,18.35]},{ x:'06/21/2024',y:[18.20,18.60,18.10,18.35]},{ x:'06/24/2024',y:[18.45,18.60,18.30,18.35]},{ x:'06/25/2024',y:[18.55,18.60,18.05,18.35]},{ x:'06/26/2024',y:[18.45,18.50,17.75,18.05]},{ x:'06/27/2024',y:[18.00,18.00,17.70,17.70]},{ x:'06/28/2024',y:[17.80,18.15,17.70,17.90]},{ x:'07/01/2024',y:[18.00,18.05,17.70,17.75]},{ x:'07/02/2024',y:[17.75,17.80,17.45,17.60]},{ x:'07/03/2024',y:[17.90,18.25,17.90,18.25]},{ x:'07/04/2024',y:[18.15,19.70,18.05,19.70]},{ x:'07/05/2024',y:[20.95,21.65,20.80,21.65]},{ x:'07/12/2024',y:[26.50,28.40,25.60,27.55]},{ x:'07/15/2024',y:[27.80,28.75,26.55,26.70]},{ x:'07/16/2024',y:[27.05,27.90,26.00,26.35]},{ x:'07/17/2024',y:[26.60,27.50,26.15,26.50]},{ x:'07/18/2024',y:[25.80,26.50,25.30,26.10]},{ x:'07/19/2024',y:[26.15,26.50,25.50,25.50]},{ x:'07/22/2024',y:[25.25,25.65,23.90,23.95]},{ x:'07/23/2024',y:[25.00,25.25,23.90,23.90]},{ x:'07/26/2024',y:[22.55,23.55,22.25,23.40]},{ x:'07/29/2024',y:[24.15,24.40,22.60,22.65]},{ x:'07/30/2024',y:[22.50,23.10,22.20,22.95]},{ x:'07/31/2024',y:[22.95,24.25,22.70,23.45]},{ x:'08/01/2024',y:[24.00,24.25,23.50,24.05]},{ x:'08/02/2024',y:[23.40,23.80,22.90,23.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2312 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());