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/23/2024',y:[17.86,17.87,17.74,17.83]},{ x:'01/24/2024',y:[17.85,17.92,17.85,17.90]},{ x:'01/25/2024',y:[17.87,17.93,17.85,17.92]},{ x:'01/26/2024',y:[17.65,17.69,17.59,17.61]},{ x:'01/29/2024',y:[17.71,17.78,17.71,17.73]},{ x:'01/30/2024',y:[17.93,17.97,17.91,17.91]},{ x:'01/31/2024',y:[17.50,17.50,17.45,17.48]},{ x:'02/01/2024',y:[17.51,17.64,17.51,17.60]},{ x:'02/02/2024',y:[17.97,17.98,17.91,17.92]},{ x:'02/05/2024',y:[18.12,18.18,18.09,18.17]},{ x:'02/15/2024',y:[18.60,18.93,18.58,18.91]},{ x:'02/16/2024',y:[18.94,19.01,18.93,19.01]},{ x:'02/19/2024',y:[19.00,19.02,18.95,18.96]},{ x:'02/20/2024',y:[18.90,18.99,18.90,18.90]},{ x:'02/21/2024',y:[18.49,18.49,18.40,18.45]},{ x:'02/22/2024',y:[18.94,19.01,18.93,18.99]},{ x:'02/23/2024',y:[19.53,19.69,19.53,19.68]},{ x:'02/26/2024',y:[19.45,19.45,19.34,19.40]},{ x:'02/27/2024',y:[19.50,19.63,19.50,19.62]},{ x:'02/29/2024',y:[19.60,19.71,19.60,19.65]},{ x:'03/01/2024',y:[20.20,20.36,20.19,20.34]},{ x:'03/04/2024',y:[20.64,20.75,20.64,20.74]},{ x:'03/05/2024',y:[20.68,20.68,20.51,20.51]},{ x:'03/06/2024',y:[20.26,20.55,20.26,20.52]},{ x:'03/07/2024',y:[20.62,20.72,20.62,20.64]},{ x:'03/08/2024',y:[21.02,21.25,21.02,21.19]},{ x:'03/11/2024',y:[20.68,20.70,20.40,20.55]},{ x:'03/12/2024',y:[20.54,20.70,20.54,20.70]},{ x:'03/13/2024',y:[21.11,21.22,21.10,21.22]},{ x:'03/14/2024',y:[20.83,20.83,20.72,20.80]},{ x:'03/15/2024',y:[20.32,20.32,20.22,20.26]},{ x:'03/18/2024',y:[20.37,20.49,20.37,20.48]},{ x:'03/19/2024',y:[20.42,20.45,20.35,20.44]},{ x:'03/20/2024',y:[20.36,20.40,20.31,20.40]},{ x:'03/21/2024',y:[20.66,20.83,20.65,20.81]},{ x:'03/22/2024',y:[20.80,20.80,20.71,20.79]},{ x:'03/25/2024',y:[20.80,20.83,20.69,20.72]},{ x:'03/26/2024',y:[20.72,20.82,20.71,20.80]},{ x:'03/27/2024',y:[20.76,20.77,20.73,20.76]},{ x:'03/28/2024',y:[20.71,20.72,20.66,20.68]},{ x:'03/29/2024',y:[20.65,20.65,20.53,20.53]},{ x:'04/01/2024',y:[20.66,20.73,20.66,20.69]},{ x:'04/02/2024',y:[20.67,20.74,20.67,20.70]},{ x:'04/03/2024',y:[20.53,20.53,20.35,20.37]},{ x:'04/08/2024',y:[20.31,20.33,20.26,20.30]},{ x:'04/09/2024',y:[20.30,20.34,20.27,20.32]},{ x:'04/10/2024',y:[20.24,20.30,20.22,20.28]},{ x:'04/11/2024',y:[20.17,20.26,20.13,20.25]},{ x:'04/12/2024',y:[20.44,20.49,20.43,20.43]},{ x:'04/15/2024',y:[20.06,20.10,19.99,20.07]},{ x:'04/16/2024',y:[19.75,19.75,19.65,19.70]},{ x:'04/17/2024',y:[19.73,19.83,19.73,19.79]},{ x:'04/18/2024',y:[19.40,19.40,19.34,19.36]},{ x:'04/19/2024',y:[19.26,19.26,18.88,19.05]},{ x:'04/22/2024',y:[18.50,18.63,18.48,18.60]},{ x:'04/23/2024',y:[18.64,18.76,18.64,18.72]},{ x:'04/24/2024',y:[19.45,19.56,19.45,19.55]},{ x:'04/25/2024',y:[19.27,19.27,19.16,19.16]},{ x:'04/26/2024',y:[19.73,19.86,19.73,19.83]},{ x:'04/29/2024',y:[20.07,20.29,20.07,20.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00893 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());