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:'11/23/2023',y:[25.55,25.63,25.55,25.56]},{ x:'11/24/2023',y:[25.58,25.59,25.57,25.59]},{ x:'11/27/2023',y:[25.55,25.58,25.51,25.52]},{ x:'11/28/2023',y:[25.60,25.60,25.52,25.52]},{ x:'11/29/2023',y:[25.58,25.58,25.50,25.50]},{ x:'11/30/2023',y:[25.66,25.68,25.66,25.68]},{ x:'12/01/2023',y:[25.69,25.76,25.69,25.76]},{ x:'12/04/2023',y:[25.82,25.85,25.77,25.77]},{ x:'12/05/2023',y:[25.56,25.74,25.56,25.64]},{ x:'12/06/2023',y:[25.86,25.89,25.86,25.88]},{ x:'12/07/2023',y:[25.63,25.63,25.63,25.63]},{ x:'12/08/2023',y:[25.96,25.96,25.82,25.85]},{ x:'12/11/2023',y:[25.95,25.95,25.88,25.88]},{ x:'12/12/2023',y:[26.22,26.26,26.21,26.25]},{ x:'12/18/2023',y:[26.55,26.66,26.55,26.63]},{ x:'12/19/2023',y:[26.88,26.88,26.81,26.82]},{ x:'01/10/2024',y:[27.04,27.04,27.03,27.03]},{ x:'01/11/2024',y:[27.47,27.47,27.37,27.37]},{ x:'01/12/2024',y:[27.39,27.41,27.34,27.37]},{ x:'01/15/2024',y:[27.53,27.61,27.53,27.61]},{ x:'01/16/2024',y:[27.72,27.76,27.70,27.70]},{ x:'01/17/2024',y:[27.89,27.89,27.82,27.86]},{ x:'01/18/2024',y:[27.99,27.99,27.87,27.87]},{ x:'01/19/2024',y:[28.33,28.33,28.26,28.26]},{ x:'01/22/2024',y:[28.84,28.86,28.78,28.82]},{ x:'01/23/2024',y:[28.78,28.80,28.69,28.69]},{ x:'01/24/2024',y:[28.88,28.92,28.88,28.92]},{ x:'01/25/2024',y:[29.00,29.02,29.00,29.01]},{ x:'01/26/2024',y:[29.01,29.01,28.96,28.96]},{ x:'01/29/2024',y:[29.00,29.00,28.95,28.96]},{ x:'01/30/2024',y:[29.09,29.20,29.09,29.20]},{ x:'01/31/2024',y:[28.91,28.91,28.84,28.84]},{ x:'02/01/2024',y:[28.69,28.72,28.69,28.72]},{ x:'02/02/2024',y:[29.14,29.26,29.14,29.23]},{ x:'02/05/2024',y:[29.72,29.72,29.57,29.57]},{ x:'02/15/2024',y:[29.91,30.00,29.90,29.96]},{ x:'02/16/2024',y:[29.94,30.00,29.93,29.97]},{ x:'02/19/2024',y:[29.85,29.85,29.77,29.78]},{ x:'02/20/2024',y:[29.78,29.80,29.71,29.75]},{ x:'02/21/2024',y:[29.52,29.52,29.40,29.48]},{ x:'02/22/2024',y:[29.73,29.76,29.68,29.76]},{ x:'02/23/2024',y:[30.25,30.25,30.21,30.21]},{ x:'02/26/2024',y:[30.16,30.30,30.12,30.13]},{ x:'02/27/2024',y:[30.22,30.23,30.20,30.20]},{ x:'02/29/2024',y:[30.20,30.20,30.13,30.13]},{ x:'03/01/2024',y:[30.30,30.45,30.30,30.45]},{ x:'03/04/2024',y:[30.94,30.94,30.82,30.90]},{ x:'03/05/2024',y:[30.90,30.90,30.70,30.70]},{ x:'03/06/2024',y:[30.36,30.40,30.36,30.40]},{ x:'03/07/2024',y:[30.42,30.44,30.40,30.41]},{ x:'03/08/2024',y:[30.79,30.83,30.73,30.75]},{ x:'03/11/2024',y:[30.55,30.57,30.40,30.40]},{ x:'03/12/2024',y:[30.43,30.50,30.43,30.50]},{ x:'03/13/2024',y:[30.90,31.00,30.90,30.95]},{ x:'03/14/2024',y:[30.94,30.94,30.85,30.85]},{ x:'03/15/2024',y:[30.91,30.91,30.85,30.85]},{ x:'03/18/2024',y:[30.59,30.64,30.54,30.64]},{ x:'03/19/2024',y:[30.58,30.82,30.58,30.74]},{ x:'03/20/2024',y:[30.77,30.80,30.77,30.80]},{ x:'03/21/2024',y:[31.17,31.28,31.17,31.26]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00886 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());