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:[22.68,23.06,22.66,23.06]},{ x:'04/30/2024',y:[23.07,23.15,22.90,22.97]},{ x:'05/02/2024',y:[21.90,22.33,21.90,22.22]},{ x:'05/03/2024',y:[23.14,23.37,22.75,22.76]},{ x:'05/06/2024',y:[23.68,23.88,23.55,23.60]},{ x:'05/07/2024',y:[23.95,24.02,23.66,24.02]},{ x:'05/08/2024',y:[23.93,24.00,23.90,23.96]},{ x:'05/09/2024',y:[23.91,24.06,23.75,23.75]},{ x:'05/10/2024',y:[23.73,23.80,23.34,23.63]},{ x:'05/13/2024',y:[23.88,23.89,23.46,23.47]},{ x:'05/14/2024',y:[23.60,23.95,23.40,23.92]},{ x:'05/15/2024',y:[23.96,24.64,23.96,24.09]},{ x:'05/16/2024',y:[24.92,24.93,24.08,24.10]},{ x:'05/17/2024',y:[24.18,24.41,24.10,24.35]},{ x:'05/20/2024',y:[24.29,24.29,23.68,24.03]},{ x:'05/21/2024',y:[24.14,24.18,23.94,23.95]},{ x:'05/22/2024',y:[24.18,24.75,24.18,24.75]},{ x:'05/23/2024',y:[25.19,25.39,25.08,25.36]},{ x:'05/24/2024',y:[25.07,25.42,25.06,25.39]},{ x:'06/11/2024',y:[25.36,25.41,25.11,25.11]},{ x:'06/12/2024',y:[25.70,26.11,25.68,26.11]},{ x:'06/13/2024',y:[26.74,27.00,26.71,26.96]},{ x:'06/14/2024',y:[27.07,27.54,26.89,27.54]},{ x:'06/17/2024',y:[27.67,28.00,27.59,27.93]},{ x:'06/18/2024',y:[28.27,28.52,28.27,28.47]},{ x:'06/19/2024',y:[29.56,30.73,29.56,30.40]},{ x:'06/20/2024',y:[30.50,31.25,30.50,31.24]},{ x:'06/21/2024',y:[30.32,31.33,30.32,31.16]},{ x:'06/24/2024',y:[30.70,30.70,29.86,29.92]},{ x:'06/25/2024',y:[29.00,30.20,28.70,30.20]},{ x:'06/26/2024',y:[30.62,30.95,30.20,30.60]},{ x:'06/27/2024',y:[29.97,30.43,29.97,30.32]},{ x:'06/28/2024',y:[30.57,30.90,30.45,30.53]},{ x:'07/01/2024',y:[30.54,30.95,30.54,30.69]},{ x:'07/02/2024',y:[30.69,30.76,29.82,29.95]},{ x:'07/03/2024',y:[30.51,30.61,30.07,30.10]},{ x:'07/04/2024',y:[31.26,31.60,31.22,31.57]},{ x:'07/05/2024',y:[31.88,31.93,31.73,31.80]},{ x:'07/12/2024',y:[34.55,34.84,33.73,33.94]},{ x:'07/15/2024',y:[35.00,35.00,33.73,33.88]},{ x:'07/16/2024',y:[34.15,34.86,34.01,34.35]},{ x:'07/17/2024',y:[34.03,34.73,33.75,34.05]},{ x:'07/18/2024',y:[31.51,32.93,31.51,32.32]},{ x:'07/19/2024',y:[32.00,32.00,30.70,30.88]},{ x:'07/22/2024',y:[30.46,30.47,28.08,28.60]},{ x:'07/23/2024',y:[29.10,30.20,29.10,30.20]},{ x:'07/26/2024',y:[27.30,27.96,26.87,27.74]},{ x:'07/29/2024',y:[28.50,28.60,27.48,27.60]},{ x:'07/30/2024',y:[27.00,28.14,26.72,28.13]},{ x:'07/31/2024',y:[27.67,28.78,27.67,28.38]},{ x:'08/01/2024',y:[31.09,31.09,29.20,29.88]},{ x:'08/02/2024',y:[27.38,27.74,25.86,25.86]},{ x:'08/05/2024',y:[24.30,24.30,21.04,21.10]},{ x:'08/06/2024',y:[23.30,23.31,20.44,22.32]},{ x:'08/07/2024',y:[23.00,24.30,22.79,24.05]},{ x:'08/08/2024',y:[23.63,23.63,22.26,22.89]},{ x:'08/09/2024',y:[24.43,24.87,24.20,24.32]},{ x:'08/12/2024',y:[24.99,26.32,24.99,25.91]},{ x:'08/13/2024',y:[26.35,26.37,25.85,26.12]},{ x:'08/14/2024',y:[27.00,27.30,26.85,27.06]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "02001l 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());