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/25/2024',y:[24.30,24.50,23.80,23.80]},{ x:'03/26/2024',y:[23.80,23.80,23.05,23.20]},{ x:'03/27/2024',y:[23.35,23.55,23.20,23.35]},{ x:'03/28/2024',y:[23.45,23.90,23.45,23.70]},{ x:'03/29/2024',y:[23.95,24.00,23.40,23.45]},{ x:'04/01/2024',y:[23.30,23.85,23.30,23.65]},{ x:'04/02/2024',y:[23.55,23.95,23.45,23.70]},{ x:'04/03/2024',y:[23.60,23.85,23.55,23.60]},{ x:'04/08/2024',y:[23.60,24.15,23.60,24.10]},{ x:'04/09/2024',y:[24.10,24.45,23.90,24.00]},{ x:'04/10/2024',y:[24.05,24.15,23.70,23.70]},{ x:'04/11/2024',y:[23.70,23.90,23.50,23.60]},{ x:'04/12/2024',y:[23.65,24.05,23.20,23.90]},{ x:'04/15/2024',y:[23.75,24.10,23.65,23.70]},{ x:'04/16/2024',y:[23.60,23.65,23.10,23.20]},{ x:'04/17/2024',y:[23.30,25.10,23.30,24.60]},{ x:'04/18/2024',y:[24.65,25.15,24.50,24.70]},{ x:'04/19/2024',y:[24.75,25.10,24.00,24.60]},{ x:'04/22/2024',y:[24.95,25.60,24.35,24.50]},{ x:'04/23/2024',y:[24.60,25.00,24.25,24.70]},{ x:'04/24/2024',y:[24.95,25.20,24.70,25.15]},{ x:'04/25/2024',y:[25.25,25.60,24.75,25.15]},{ x:'04/26/2024',y:[25.35,27.65,25.20,27.65]},{ x:'04/29/2024',y:[29.45,30.40,29.20,30.40]},{ x:'04/30/2024',y:[31.50,32.40,28.50,29.75]},{ x:'05/02/2024',y:[29.80,31.85,28.75,29.70]},{ x:'05/03/2024',y:[29.55,29.65,28.65,28.90]},{ x:'05/06/2024',y:[29.10,29.10,28.25,28.50]},{ x:'05/07/2024',y:[28.85,29.15,28.20,28.65]},{ x:'05/08/2024',y:[29.15,30.30,28.35,28.40]},{ x:'05/09/2024',y:[28.60,28.95,28.15,28.40]},{ x:'05/10/2024',y:[28.75,29.75,28.30,29.05]},{ x:'05/13/2024',y:[29.85,30.30,28.60,28.70]},{ x:'05/14/2024',y:[28.70,29.40,28.20,28.70]},{ x:'05/15/2024',y:[29.80,30.00,29.25,29.75]},{ x:'05/16/2024',y:[30.45,30.65,29.85,30.65]},{ x:'05/17/2024',y:[31.00,31.20,30.00,31.20]},{ x:'05/20/2024',y:[31.80,31.80,30.30,30.35]},{ x:'05/21/2024',y:[30.20,30.25,29.60,29.70]},{ x:'05/22/2024',y:[29.65,30.40,29.65,30.40]},{ x:'05/23/2024',y:[30.30,30.80,30.00,30.10]},{ x:'05/24/2024',y:[30.00,31.50,29.95,30.85]},{ x:'06/11/2024',y:[33.50,34.15,32.00,32.20]},{ x:'06/12/2024',y:[32.05,32.95,31.50,32.35]},{ x:'06/13/2024',y:[32.35,32.85,32.25,32.75]},{ x:'06/14/2024',y:[32.75,34.90,32.75,34.15]},{ x:'06/17/2024',y:[34.50,34.70,33.50,33.60]},{ x:'06/18/2024',y:[33.75,33.90,33.50,33.85]},{ x:'06/19/2024',y:[33.80,34.45,33.65,34.15]},{ x:'06/20/2024',y:[34.05,35.20,34.00,34.65]},{ x:'06/21/2024',y:[34.75,35.20,34.50,34.55]},{ x:'06/24/2024',y:[34.50,34.50,33.10,33.25]},{ x:'06/25/2024',y:[33.55,34.05,33.00,33.85]},{ x:'06/26/2024',y:[33.85,34.00,33.30,33.40]},{ x:'06/27/2024',y:[33.40,33.55,32.80,32.90]},{ x:'06/28/2024',y:[32.85,33.10,32.50,32.90]},{ x:'07/01/2024',y:[33.00,33.40,32.85,33.00]},{ x:'07/02/2024',y:[29.50,30.10,29.25,29.50]},{ x:'07/03/2024',y:[29.65,30.10,29.50,29.60]},{ x:'07/04/2024',y:[29.65,29.65,29.15,29.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2611 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());