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/20/2024',y:[26.22,26.35,26.22,26.31]},{ x:'03/21/2024',y:[26.65,27.19,26.65,27.19]},{ x:'03/22/2024',y:[27.21,27.36,27.20,27.25]},{ x:'03/25/2024',y:[27.22,27.27,27.13,27.13]},{ x:'03/26/2024',y:[27.16,27.18,27.02,27.15]},{ x:'03/27/2024',y:[26.99,27.05,26.85,27.01]},{ x:'03/28/2024',y:[27.25,27.27,27.15,27.17]},{ x:'03/29/2024',y:[27.20,27.31,27.20,27.28]},{ x:'04/01/2024',y:[27.35,27.35,27.26,27.31]},{ x:'04/02/2024',y:[27.35,27.49,27.35,27.46]},{ x:'04/03/2024',y:[27.45,27.45,27.05,27.09]},{ x:'04/08/2024',y:[27.10,27.10,26.92,26.92]},{ x:'04/09/2024',y:[26.93,26.97,26.92,26.97]},{ x:'04/10/2024',y:[27.00,27.19,27.00,27.10]},{ x:'04/11/2024',y:[26.78,26.89,26.70,26.89]},{ x:'04/12/2024',y:[27.57,27.57,27.33,27.37]},{ x:'04/15/2024',y:[26.81,26.81,26.62,26.72]},{ x:'04/16/2024',y:[26.29,26.33,26.17,26.33]},{ x:'04/17/2024',y:[26.41,26.74,26.41,26.70]},{ x:'04/18/2024',y:[26.10,26.10,25.83,25.95]},{ x:'04/19/2024',y:[25.45,25.45,24.90,25.04]},{ x:'04/22/2024',y:[24.79,24.79,24.40,24.59]},{ x:'04/23/2024',y:[24.83,24.90,24.83,24.89]},{ x:'04/24/2024',y:[25.38,25.71,25.38,25.67]},{ x:'04/25/2024',y:[25.45,25.58,25.45,25.48]},{ x:'04/26/2024',y:[26.19,26.30,26.06,26.10]},{ x:'04/29/2024',y:[26.61,26.71,26.61,26.67]},{ x:'04/30/2024',y:[26.80,26.83,26.70,26.71]},{ x:'05/02/2024',y:[25.57,25.63,25.57,25.63]},{ x:'05/03/2024',y:[25.98,26.05,25.87,25.89]},{ x:'05/06/2024',y:[26.15,26.33,26.15,26.33]},{ x:'05/07/2024',y:[26.63,26.82,26.63,26.78]},{ x:'05/08/2024',y:[26.73,26.73,26.53,26.62]},{ x:'05/09/2024',y:[26.67,26.67,26.60,26.60]},{ x:'05/10/2024',y:[26.60,26.60,26.55,26.56]},{ x:'05/13/2024',y:[26.76,26.83,26.73,26.80]},{ x:'05/14/2024',y:[26.80,26.84,26.77,26.82]},{ x:'05/15/2024',y:[27.01,27.22,27.01,27.15]},{ x:'05/16/2024',y:[27.75,27.80,27.71,27.77]},{ x:'05/17/2024',y:[27.71,27.73,27.68,27.69]},{ x:'05/20/2024',y:[27.69,27.69,27.65,27.66]},{ x:'05/21/2024',y:[27.99,28.20,27.99,28.15]},{ x:'05/22/2024',y:[28.15,28.23,28.15,28.19]},{ x:'05/23/2024',y:[28.40,29.06,28.40,29.05]},{ x:'05/24/2024',y:[28.77,28.77,28.36,28.49]},{ x:'06/11/2024',y:[29.42,29.70,29.42,29.64]},{ x:'06/12/2024',y:[29.68,29.74,29.68,29.70]},{ x:'06/13/2024',y:[30.72,31.27,30.72,31.02]},{ x:'06/14/2024',y:[31.39,31.39,30.95,31.05]},{ x:'06/17/2024',y:[31.20,31.20,30.93,30.94]},{ x:'06/18/2024',y:[31.30,31.47,31.30,31.45]},{ x:'06/19/2024',y:[31.90,32.26,31.90,31.99]},{ x:'06/20/2024',y:[32.02,32.02,31.89,31.97]},{ x:'06/21/2024',y:[31.38,31.38,30.97,31.00]},{ x:'06/24/2024',y:[30.60,30.65,30.55,30.61]},{ x:'06/25/2024',y:[29.79,29.97,29.76,29.97]},{ x:'06/26/2024',y:[30.51,30.51,30.39,30.39]},{ x:'06/27/2024',y:[30.09,30.21,29.98,30.20]},{ x:'06/28/2024',y:[30.20,30.40,30.20,30.21]},{ x:'07/01/2024',y:[30.27,30.36,30.27,30.36]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00911 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());