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/15/2024',y:[31.10,31.10,31.00,31.05]},{ x:'04/16/2024',y:[31.00,31.10,30.90,31.05]},{ x:'04/17/2024',y:[31.05,31.05,31.00,31.00]},{ x:'04/18/2024',y:[30.90,31.15,30.90,31.15]},{ x:'04/19/2024',y:[31.00,31.10,30.90,30.95]},{ x:'04/22/2024',y:[30.95,31.20,30.95,31.05]},{ x:'04/23/2024',y:[31.10,31.20,31.10,31.10]},{ x:'04/24/2024',y:[31.15,31.25,31.15,31.20]},{ x:'04/25/2024',y:[31.25,31.25,31.00,31.25]},{ x:'04/26/2024',y:[31.25,31.50,31.20,31.45]},{ x:'04/29/2024',y:[31.35,31.60,31.20,31.35]},{ x:'04/30/2024',y:[31.35,31.45,31.25,31.40]},{ x:'05/02/2024',y:[31.40,31.50,31.35,31.50]},{ x:'05/03/2024',y:[31.50,32.00,31.50,31.55]},{ x:'05/06/2024',y:[31.55,31.85,31.55,31.70]},{ x:'05/07/2024',y:[31.75,32.60,31.60,31.85]},{ x:'05/08/2024',y:[31.85,32.05,31.85,32.05]},{ x:'05/09/2024',y:[32.10,32.40,31.85,31.90]},{ x:'05/10/2024',y:[31.90,33.35,31.80,32.70]},{ x:'05/13/2024',y:[33.35,35.95,33.00,33.95]},{ x:'05/14/2024',y:[33.95,36.50,33.95,35.25]},{ x:'05/15/2024',y:[35.25,35.25,34.60,34.75]},{ x:'05/16/2024',y:[36.20,36.20,34.65,34.80]},{ x:'05/17/2024',y:[35.10,35.75,34.75,35.05]},{ x:'05/20/2024',y:[35.60,35.80,34.90,35.50]},{ x:'05/21/2024',y:[35.50,35.50,35.00,35.15]},{ x:'05/22/2024',y:[35.25,35.90,35.25,35.45]},{ x:'05/23/2024',y:[35.50,35.50,34.95,35.00]},{ x:'05/24/2024',y:[34.90,35.05,34.85,35.00]},{ x:'06/11/2024',y:[39.30,39.70,39.30,39.50]},{ x:'06/12/2024',y:[39.50,40.50,37.90,40.40]},{ x:'06/13/2024',y:[40.00,40.10,39.45,40.00]},{ x:'06/14/2024',y:[40.05,40.05,39.50,39.80]},{ x:'06/17/2024',y:[39.85,40.35,39.80,40.15]},{ x:'06/18/2024',y:[40.20,40.40,39.90,40.10]},{ x:'06/19/2024',y:[40.10,40.35,39.75,39.90]},{ x:'06/20/2024',y:[40.25,40.30,39.95,40.25]},{ x:'06/21/2024',y:[40.25,43.45,40.25,42.50]},{ x:'06/24/2024',y:[45.85,45.90,40.40,42.00]},{ x:'06/25/2024',y:[42.25,43.25,41.50,41.70]},{ x:'06/26/2024',y:[41.85,45.85,41.85,44.40]},{ x:'06/27/2024',y:[44.30,45.00,43.10,44.95]},{ x:'06/28/2024',y:[44.60,45.35,44.40,45.00]},{ x:'07/01/2024',y:[45.15,46.60,45.15,45.20]},{ x:'07/02/2024',y:[45.25,45.40,44.75,44.85]},{ x:'07/03/2024',y:[44.75,45.20,44.70,45.05]},{ x:'07/04/2024',y:[45.05,45.80,45.05,45.50]},{ x:'07/05/2024',y:[45.85,46.40,44.95,45.50]},{ x:'07/12/2024',y:[44.50,45.00,44.50,44.80]},{ x:'07/15/2024',y:[44.80,45.00,44.50,44.75]},{ x:'07/16/2024',y:[44.60,44.75,43.50,44.10]},{ x:'07/17/2024',y:[44.25,44.35,43.75,43.80]},{ x:'07/18/2024',y:[43.10,43.75,43.10,43.55]},{ x:'07/19/2024',y:[43.10,43.60,42.95,43.55]},{ x:'07/22/2024',y:[43.05,43.05,42.00,42.25]},{ x:'07/23/2024',y:[42.50,43.00,42.40,42.80]},{ x:'07/26/2024',y:[42.75,43.55,42.20,42.80]},{ x:'07/29/2024',y:[42.85,42.90,42.45,42.75]},{ x:'07/30/2024',y:[42.50,43.25,42.00,43.15]},{ x:'07/31/2024',y:[43.25,44.30,43.25,44.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1423 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());