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:'10/13/2023',y:[17.23,17.31,17.20,17.27]},{ x:'10/18/2023',y:[17.10,17.10,16.81,16.82]},{ x:'10/19/2023',y:[16.75,16.88,16.74,16.85]},{ x:'10/20/2023',y:[16.81,16.91,16.69,16.86]},{ x:'10/23/2023',y:[16.80,16.80,16.62,16.63]},{ x:'10/24/2023',y:[16.60,16.67,16.46,16.67]},{ x:'10/25/2023',y:[16.73,16.81,16.71,16.71]},{ x:'10/26/2023',y:[16.45,16.46,16.36,16.36]},{ x:'10/27/2023',y:[16.40,16.43,16.33,16.35]},{ x:'10/30/2023',y:[16.36,16.48,16.36,16.40]},{ x:'10/31/2023',y:[16.45,16.49,16.20,16.22]},{ x:'11/01/2023',y:[16.32,16.35,16.20,16.28]},{ x:'11/02/2023',y:[16.51,16.71,16.51,16.71]},{ x:'11/03/2023',y:[16.72,16.82,16.72,16.79]},{ x:'11/06/2023',y:[16.95,17.06,16.94,16.98]},{ x:'11/07/2023',y:[16.97,17.03,16.92,16.99]},{ x:'11/08/2023',y:[16.99,17.20,16.99,17.13]},{ x:'11/09/2023',y:[17.11,17.19,17.10,17.18]},{ x:'11/10/2023',y:[17.13,17.13,17.02,17.07]},{ x:'11/13/2023',y:[17.36,17.42,17.26,17.28]},{ x:'11/14/2023',y:[17.32,17.39,17.30,17.33]},{ x:'11/15/2023',y:[17.60,17.63,17.41,17.46]},{ x:'11/16/2023',y:[17.53,17.54,17.37,17.44]},{ x:'11/17/2023',y:[17.45,17.58,17.44,17.53]},{ x:'11/20/2023',y:[17.54,17.60,17.51,17.58]},{ x:'11/21/2023',y:[17.68,17.82,17.68,17.79]},{ x:'11/22/2023',y:[17.73,17.76,17.65,17.67]},{ x:'11/23/2023',y:[17.69,17.75,17.59,17.63]},{ x:'11/24/2023',y:[17.66,17.70,17.63,17.64]},{ x:'11/27/2023',y:[17.64,17.72,17.46,17.46]},{ x:'11/28/2023',y:[17.43,17.66,17.43,17.61]},{ x:'11/29/2023',y:[17.62,17.76,17.62,17.66]},{ x:'11/30/2023',y:[17.67,17.71,17.56,17.69]},{ x:'12/01/2023',y:[17.64,17.70,17.59,17.69]},{ x:'12/04/2023',y:[17.72,17.77,17.60,17.63]},{ x:'12/05/2023',y:[17.54,17.54,17.45,17.50]},{ x:'12/06/2023',y:[17.48,17.63,17.48,17.55]},{ x:'12/07/2023',y:[17.50,17.57,17.48,17.49]},{ x:'12/08/2023',y:[17.63,17.72,17.58,17.58]},{ x:'12/11/2023',y:[17.60,17.66,17.59,17.62]},{ x:'12/12/2023',y:[17.71,17.77,17.62,17.65]},{ x:'12/18/2023',y:[18.03,18.05,17.89,18.03]},{ x:'12/19/2023',y:[18.02,18.04,17.89,17.98]},{ x:'01/10/2024',y:[17.97,17.97,17.84,17.90]},{ x:'01/11/2024',y:[17.90,18.02,17.90,18.00]},{ x:'01/12/2024',y:[17.96,18.08,17.89,18.01]},{ x:'01/15/2024',y:[18.07,18.17,18.03,18.10]},{ x:'01/16/2024',y:[18.01,18.03,17.91,17.94]},{ x:'01/17/2024',y:[17.24,17.24,16.97,16.97]},{ x:'01/18/2024',y:[17.00,17.09,16.96,17.01]},{ x:'01/19/2024',y:[17.40,17.59,17.35,17.57]},{ x:'01/22/2024',y:[17.74,17.90,17.73,17.82]},{ x:'01/23/2024',y:[17.83,17.88,17.78,17.86]},{ x:'01/24/2024',y:[17.86,17.92,17.84,17.85]},{ x:'01/25/2024',y:[17.96,18.04,17.96,18.02]},{ x:'01/26/2024',y:[18.00,18.01,17.89,17.94]},{ x:'01/29/2024',y:[17.96,18.06,17.92,18.06]},{ x:'01/30/2024',y:[18.05,18.17,18.05,18.15]},{ x:'01/31/2024',y:[18.09,18.09,17.91,17.92]},{ x:'02/01/2024',y:[17.90,17.93,17.77,17.86]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());