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/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]},{ x:'07/02/2024',y:[30.36,30.41,30.32,30.33]},{ x:'07/03/2024',y:[30.77,30.87,30.77,30.84]},{ x:'07/04/2024',y:[31.34,31.41,31.30,31.32]},{ x:'07/05/2024',y:[31.33,31.34,31.21,31.26]},{ x:'07/12/2024',y:[31.61,31.70,31.55,31.55]},{ x:'07/15/2024',y:[31.91,32.12,31.91,32.12]},{ x:'07/16/2024',y:[32.40,32.42,32.30,32.41]},{ x:'07/17/2024',y:[31.36,31.36,30.98,31.00]},{ x:'07/18/2024',y:[29.52,29.56,29.15,29.47]},{ x:'07/19/2024',y:[29.06,29.13,28.93,29.02]},{ x:'07/22/2024',y:[28.50,28.50,28.10,28.19]},{ x:'07/23/2024',y:[29.29,29.29,29.00,29.04]},{ x:'07/26/2024',y:[28.00,28.00,27.00,27.18]},{ x:'07/29/2024',y:[27.38,27.59,27.38,27.54]},{ x:'07/30/2024',y:[27.30,27.30,27.11,27.26]},{ x:'07/31/2024',y:[26.98,27.01,26.88,27.00]},{ x:'08/01/2024',y:[28.21,28.28,28.00,28.19]},{ x:'08/02/2024',y:[26.88,26.88,25.77,25.91]},{ x:'08/05/2024',y:[24.52,24.52,22.99,23.13]},{ x:'08/06/2024',y:[24.41,24.95,24.12,24.71]},{ x:'08/07/2024',y:[24.71,24.86,24.40,24.85]},{ x:'08/08/2024',y:[23.77,23.90,23.64,23.70]},{ x:'08/09/2024',y:[25.10,25.19,24.81,24.96]},{ x:'08/12/2024',y:[25.25,25.25,24.90,25.01]},{ x:'08/13/2024',y:[25.12,25.12,25.04,25.11]} ] }], 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());