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:'03/21/2024',y:[38.55,38.95,38.55,38.65]},{ x:'03/22/2024',y:[38.60,38.95,38.60,38.80]},{ x:'03/25/2024',y:[38.80,39.40,38.80,39.35]},{ x:'03/26/2024',y:[39.30,39.30,38.95,39.00]},{ x:'03/27/2024',y:[39.80,40.80,39.55,40.60]},{ x:'03/28/2024',y:[40.20,40.65,40.15,40.50]},{ x:'03/29/2024',y:[40.40,40.40,40.00,40.15]},{ x:'04/01/2024',y:[40.15,40.45,40.15,40.25]},{ x:'04/02/2024',y:[40.10,40.30,40.05,40.10]},{ x:'04/03/2024',y:[40.00,40.50,40.00,40.25]},{ x:'04/08/2024',y:[40.25,41.00,40.25,40.70]},{ x:'04/09/2024',y:[40.75,41.30,40.45,41.20]},{ x:'04/10/2024',y:[41.15,41.70,41.15,41.35]},{ x:'04/11/2024',y:[41.20,41.20,40.90,41.10]},{ x:'04/12/2024',y:[41.00,41.15,40.80,40.80]},{ x:'04/15/2024',y:[40.70,41.25,40.65,40.80]},{ x:'04/16/2024',y:[40.80,40.80,40.05,40.10]},{ x:'04/17/2024',y:[40.10,41.00,40.10,40.85]},{ x:'04/18/2024',y:[40.45,42.20,40.35,41.60]},{ x:'04/19/2024',y:[41.30,42.15,40.90,41.45]},{ x:'04/22/2024',y:[41.45,44.45,41.10,42.40]},{ x:'04/23/2024',y:[42.40,42.65,41.80,42.25]},{ x:'04/24/2024',y:[42.30,42.45,41.85,41.95]},{ x:'04/25/2024',y:[42.00,43.00,42.00,42.70]},{ x:'04/26/2024',y:[42.70,43.60,42.40,42.95]},{ x:'04/29/2024',y:[43.25,44.80,42.90,44.30]},{ x:'04/30/2024',y:[44.30,44.35,43.20,44.30]},{ x:'05/02/2024',y:[44.00,47.50,44.00,46.60]},{ x:'05/03/2024',y:[47.50,48.20,46.10,47.20]},{ x:'05/06/2024',y:[47.75,48.70,47.20,48.15]},{ x:'05/07/2024',y:[48.20,50.00,47.05,47.85]},{ x:'05/08/2024',y:[47.90,48.80,46.50,46.85]},{ x:'05/09/2024',y:[46.85,47.65,45.55,45.65]},{ x:'05/10/2024',y:[45.80,45.95,45.15,45.20]},{ x:'05/13/2024',y:[45.25,46.25,44.70,46.10]},{ x:'05/14/2024',y:[46.10,46.20,45.15,45.25]},{ x:'05/15/2024',y:[45.00,45.55,44.20,44.45]},{ x:'05/16/2024',y:[44.95,46.15,44.55,45.55]},{ x:'05/17/2024',y:[45.80,46.15,45.35,45.70]},{ x:'05/20/2024',y:[45.75,46.15,45.10,45.20]},{ x:'05/21/2024',y:[45.20,45.20,44.35,44.60]},{ x:'05/22/2024',y:[44.60,45.30,44.45,45.25]},{ x:'05/23/2024',y:[45.00,45.00,44.40,44.50]},{ x:'05/24/2024',y:[44.30,44.60,43.75,44.35]},{ x:'06/11/2024',y:[48.45,49.25,47.45,48.95]},{ x:'06/12/2024',y:[49.10,49.70,48.30,48.30]},{ x:'06/13/2024',y:[48.40,49.25,47.70,49.15]},{ x:'06/14/2024',y:[49.50,52.50,49.10,51.60]},{ x:'06/17/2024',y:[52.40,53.50,51.40,52.10]},{ x:'06/18/2024',y:[52.30,52.50,51.30,51.60]},{ x:'06/19/2024',y:[51.50,52.30,50.70,51.70]},{ x:'06/20/2024',y:[51.70,52.70,51.50,52.50]},{ x:'06/21/2024',y:[52.80,53.20,51.30,52.80]},{ x:'06/24/2024',y:[52.30,54.70,52.00,53.20]},{ x:'06/25/2024',y:[53.10,53.50,51.60,51.90]},{ x:'06/26/2024',y:[52.00,53.40,51.80,52.70]},{ x:'06/27/2024',y:[52.40,54.30,52.40,53.40]},{ x:'06/28/2024',y:[53.80,53.80,52.00,52.10]},{ x:'07/01/2024',y:[51.80,53.10,51.70,53.10]},{ x:'07/02/2024',y:[53.10,53.30,52.40,53.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2542 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());