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/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]},{ x:'07/05/2024',y:[29.15,29.30,28.60,28.75]},{ x:'07/12/2024',y:[27.15,27.40,27.05,27.35]},{ x:'07/15/2024',y:[27.40,27.40,26.90,27.10]},{ x:'07/16/2024',y:[27.20,27.40,27.05,27.20]},{ x:'07/17/2024',y:[27.25,27.45,27.00,27.05]},{ x:'07/18/2024',y:[27.05,27.25,26.75,27.10]},{ x:'07/19/2024',y:[27.10,27.10,26.45,26.65]},{ x:'07/22/2024',y:[26.50,26.50,25.35,25.90]},{ x:'07/23/2024',y:[26.30,26.35,25.95,26.00]},{ x:'07/26/2024',y:[25.50,25.80,25.20,25.70]},{ x:'07/29/2024',y:[25.90,25.90,25.25,25.45]},{ x:'07/30/2024',y:[25.50,26.05,25.25,26.00]},{ x:'07/31/2024',y:[26.00,26.50,25.80,26.50]},{ x:'08/01/2024',y:[26.75,28.05,26.55,27.20]},{ x:'08/02/2024',y:[26.60,27.15,26.55,26.75]},{ x:'08/05/2024',y:[26.10,26.10,24.15,24.40]},{ x:'08/06/2024',y:[24.75,25.30,23.15,23.90]},{ x:'08/07/2024',y:[24.30,25.60,24.20,25.45]},{ x:'08/08/2024',y:[25.25,25.25,24.70,24.80]},{ x:'08/09/2024',y:[25.05,25.35,24.90,25.00]},{ x:'08/12/2024',y:[25.25,25.75,25.10,25.65]},{ x:'08/13/2024',y:[26.10,26.10,25.35,25.60]},{ x:'08/14/2024',y:[25.30,25.50,24.70,24.80]} ] }], 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());