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:'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]},{ x:'02/02/2024',y:[17.97,18.01,17.94,18.00]},{ x:'02/05/2024',y:[18.00,18.11,17.98,18.11]},{ x:'02/15/2024',y:[18.61,18.95,18.61,18.81]},{ x:'02/16/2024',y:[18.87,18.88,18.70,18.70]},{ x:'02/19/2024',y:[18.70,18.70,18.60,18.65]},{ x:'02/20/2024',y:[18.65,18.85,18.63,18.83]},{ x:'02/21/2024',y:[18.76,18.76,18.66,18.71]},{ x:'02/22/2024',y:[18.85,18.97,18.82,18.97]},{ x:'02/23/2024',y:[19.06,19.24,19.06,19.15]},{ x:'02/26/2024',y:[19.15,19.28,19.03,19.26]},{ x:'02/27/2024',y:[19.23,19.35,19.01,19.16]},{ x:'02/29/2024',y:[19.09,19.21,19.04,19.17]},{ x:'03/01/2024',y:[19.20,19.27,19.09,19.09]},{ x:'03/04/2024',y:[19.34,19.64,19.32,19.59]},{ x:'03/05/2024',y:[19.67,19.83,19.60,19.78]},{ x:'03/06/2024',y:[19.58,19.99,19.57,19.99]},{ x:'03/07/2024',y:[20.10,20.41,20.10,20.30]},{ x:'03/08/2024',y:[20.60,20.78,20.24,20.42]},{ x:'03/11/2024',y:[20.33,20.48,20.25,20.36]},{ x:'03/12/2024',y:[20.30,20.70,20.29,20.70]},{ x:'03/13/2024',y:[20.82,20.94,20.58,20.68]},{ x:'03/14/2024',y:[20.68,20.68,20.34,20.43]},{ x:'03/15/2024',y:[20.36,20.56,20.36,20.42]},{ x:'03/18/2024',y:[20.46,20.79,20.46,20.79]},{ x:'03/19/2024',y:[20.65,20.84,20.57,20.83]},{ x:'03/20/2024',y:[20.83,21.01,20.65,20.68]},{ x:'03/21/2024',y:[20.91,21.20,20.91,21.20]},{ x:'03/22/2024',y:[21.22,21.35,21.11,21.34]},{ x:'03/25/2024',y:[21.34,21.35,21.18,21.24]},{ x:'03/26/2024',y:[21.28,21.44,20.85,21.06]},{ x:'03/27/2024',y:[21.05,21.27,21.05,21.25]},{ x:'03/28/2024',y:[21.25,21.45,21.03,21.45]},{ x:'03/29/2024',y:[21.45,21.52,21.40,21.46]},{ x:'04/01/2024',y:[21.50,21.65,21.33,21.33]},{ x:'04/02/2024',y:[21.51,21.73,21.50,21.71]},{ x:'04/03/2024',y:[21.60,21.67,21.46,21.66]},{ x:'04/08/2024',y:[21.75,21.76,21.57,21.68]},{ x:'04/09/2024',y:[21.78,21.99,21.77,21.98]},{ x:'04/10/2024',y:[21.98,22.06,21.90,21.94]},{ x:'04/11/2024',y:[21.88,21.90,21.69,21.79]},{ x:'04/12/2024',y:[21.83,21.90,21.73,21.79]},{ x:'04/15/2024',y:[21.57,21.58,21.24,21.29]},{ x:'04/16/2024',y:[21.02,21.02,20.46,20.65]},{ x:'04/17/2024',y:[20.68,20.91,20.66,20.86]},{ x:'04/18/2024',y:[20.70,21.01,20.62,21.00]},{ x:'04/19/2024',y:[20.54,20.54,19.77,20.01]},{ x:'04/22/2024',y:[19.83,20.04,19.68,19.71]},{ x:'04/23/2024',y:[19.95,20.05,19.83,19.95]},{ x:'04/24/2024',y:[20.27,20.79,20.26,20.77]},{ x:'04/25/2024',y:[20.43,20.58,20.34,20.37]},{ x:'04/26/2024',y:[20.70,20.86,20.65,20.72]} ] }], 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());