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/19/2024',y:[24.60,25.00,24.55,24.65]},{ x:'03/20/2024',y:[24.70,26.20,24.65,25.60]},{ x:'03/21/2024',y:[26.00,26.45,25.50,26.30]},{ x:'03/22/2024',y:[26.40,26.80,26.00,26.40]},{ x:'03/25/2024',y:[26.60,28.00,26.40,27.95]},{ x:'03/26/2024',y:[28.10,28.10,26.70,26.95]},{ x:'03/27/2024',y:[27.10,27.45,26.70,27.45]},{ x:'03/28/2024',y:[29.20,30.15,28.80,30.15]},{ x:'03/29/2024',y:[29.00,29.05,27.30,27.75]},{ x:'04/01/2024',y:[27.50,28.35,27.45,28.20]},{ x:'04/02/2024',y:[28.50,28.55,27.70,27.90]},{ x:'04/03/2024',y:[27.50,27.85,27.10,27.25]},{ x:'04/08/2024',y:[27.20,27.95,27.20,27.85]},{ x:'04/09/2024',y:[27.75,28.00,27.35,27.50]},{ x:'04/10/2024',y:[28.05,30.20,28.00,29.30]},{ x:'04/11/2024',y:[28.30,29.25,28.30,28.75]},{ x:'04/12/2024',y:[29.00,29.80,28.60,29.25]},{ x:'04/15/2024',y:[29.10,32.15,28.90,32.15]},{ x:'04/16/2024',y:[31.50,31.75,29.70,30.30]},{ x:'04/17/2024',y:[30.90,33.30,30.60,33.20]},{ x:'04/18/2024',y:[32.70,33.90,31.90,32.35]},{ x:'04/19/2024',y:[31.50,31.50,30.00,30.90]},{ x:'04/22/2024',y:[30.70,31.05,28.85,29.00]},{ x:'04/23/2024',y:[30.05,30.10,29.10,29.40]},{ x:'04/24/2024',y:[29.55,30.30,29.55,30.00]},{ x:'04/25/2024',y:[30.00,31.75,29.60,31.20]},{ x:'04/26/2024',y:[31.60,31.90,30.60,31.65]},{ x:'04/29/2024',y:[32.00,33.60,31.95,33.00]},{ x:'04/30/2024',y:[33.00,33.45,32.10,32.60]},{ x:'05/02/2024',y:[32.40,32.65,32.10,32.60]},{ x:'05/03/2024',y:[33.60,35.85,33.60,34.95]},{ x:'05/06/2024',y:[34.05,38.00,33.25,36.90]},{ x:'05/07/2024',y:[36.90,37.95,35.50,35.80]},{ x:'05/08/2024',y:[36.50,37.80,35.65,35.85]},{ x:'05/09/2024',y:[37.60,37.60,34.80,34.80]},{ x:'05/10/2024',y:[35.45,36.20,34.35,36.05]},{ x:'05/13/2024',y:[36.80,36.80,35.15,35.25]},{ x:'05/14/2024',y:[36.40,36.40,35.00,35.85]},{ x:'05/15/2024',y:[35.85,37.75,35.65,37.20]},{ x:'05/16/2024',y:[37.70,38.50,36.55,36.65]},{ x:'05/17/2024',y:[36.80,37.50,36.25,36.80]},{ x:'05/20/2024',y:[37.55,37.70,36.50,36.95]},{ x:'05/21/2024',y:[36.90,38.10,36.60,38.10]},{ x:'05/22/2024',y:[38.20,38.40,37.00,37.05]},{ x:'05/23/2024',y:[37.15,37.40,35.80,37.25]},{ x:'05/24/2024',y:[36.55,37.75,36.40,37.65]},{ x:'06/11/2024',y:[49.20,49.30,47.10,47.15]},{ x:'06/12/2024',y:[47.00,47.95,45.70,46.30]},{ x:'06/13/2024',y:[46.95,46.95,44.50,44.80]},{ x:'06/14/2024',y:[45.20,45.60,43.80,44.00]},{ x:'06/17/2024',y:[44.50,47.30,44.50,46.25]},{ x:'06/18/2024',y:[46.60,46.60,44.50,45.50]},{ x:'06/19/2024',y:[45.20,45.85,44.10,44.25]},{ x:'06/20/2024',y:[44.25,45.40,44.25,44.40]},{ x:'06/21/2024',y:[44.40,48.70,44.30,48.20]},{ x:'06/24/2024',y:[48.20,48.20,46.00,46.10]},{ x:'06/25/2024',y:[46.25,46.25,44.95,45.45]},{ x:'06/26/2024',y:[45.45,46.50,45.05,45.30]},{ x:'06/27/2024',y:[45.30,45.75,44.40,44.60]},{ x:'06/28/2024',y:[44.40,46.50,41.20,44.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8121 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());