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:[19.74,19.80,19.71,19.78]},{ x:'01/23/2024',y:[19.80,19.80,19.73,19.79]},{ x:'01/24/2024',y:[19.84,19.92,19.84,19.89]},{ x:'01/25/2024',y:[19.89,19.90,19.84,19.87]},{ x:'01/26/2024',y:[19.88,19.90,19.83,19.85]},{ x:'01/29/2024',y:[19.93,19.95,19.93,19.93]},{ x:'01/30/2024',y:[20.05,20.11,20.04,20.10]},{ x:'01/31/2024',y:[20.04,20.04,19.92,19.99]},{ x:'02/01/2024',y:[19.81,19.85,19.77,19.84]},{ x:'02/02/2024',y:[20.04,20.15,20.04,20.14]},{ x:'02/05/2024',y:[20.27,20.40,20.27,20.39]},{ x:'02/15/2024',y:[20.37,20.49,20.37,20.48]},{ x:'02/16/2024',y:[20.50,20.55,20.50,20.52]},{ x:'02/19/2024',y:[20.47,20.47,20.40,20.45]},{ x:'02/20/2024',y:[20.45,20.45,20.37,20.40]},{ x:'02/21/2024',y:[20.41,20.41,20.36,20.36]},{ x:'02/22/2024',y:[20.52,20.57,20.52,20.57]},{ x:'02/23/2024',y:[20.75,20.79,20.73,20.78]},{ x:'02/26/2024',y:[20.71,20.77,20.71,20.75]},{ x:'02/27/2024',y:[20.72,20.73,20.67,20.69]},{ x:'02/29/2024',y:[20.69,20.78,20.69,20.77]},{ x:'03/01/2024',y:[20.86,20.91,20.85,20.90]},{ x:'03/04/2024',y:[21.00,21.00,20.86,20.90]},{ x:'03/05/2024',y:[20.77,20.77,20.72,20.74]},{ x:'03/06/2024',y:[20.55,20.55,20.45,20.49]},{ x:'03/07/2024',y:[20.49,20.49,20.36,20.41]},{ x:'03/08/2024',y:[20.50,20.55,20.50,20.53]},{ x:'03/11/2024',y:[20.46,20.53,20.46,20.47]},{ x:'03/12/2024',y:[20.47,20.62,20.47,20.61]},{ x:'03/13/2024',y:[20.65,20.76,20.65,20.76]},{ x:'03/14/2024',y:[20.76,20.79,20.74,20.76]},{ x:'03/15/2024',y:[20.81,20.90,20.81,20.89]},{ x:'03/18/2024',y:[20.63,20.73,20.63,20.73]},{ x:'03/19/2024',y:[20.86,20.94,20.86,20.93]},{ x:'03/20/2024',y:[21.05,21.12,21.05,21.09]},{ x:'03/21/2024',y:[21.31,21.50,21.31,21.47]},{ x:'03/22/2024',y:[21.44,21.47,21.41,21.44]},{ x:'03/25/2024',y:[21.38,21.41,21.26,21.29]},{ x:'03/26/2024',y:[21.25,21.26,21.17,21.25]},{ x:'03/27/2024',y:[21.25,21.34,21.25,21.32]},{ x:'03/28/2024',y:[21.34,21.40,21.34,21.36]},{ x:'03/29/2024',y:[21.36,21.36,21.30,21.30]},{ x:'04/01/2024',y:[21.33,21.39,21.32,21.37]},{ x:'04/02/2024',y:[21.38,21.38,21.31,21.34]},{ x:'04/03/2024',y:[21.31,21.31,21.20,21.21]},{ x:'04/08/2024',y:[21.21,21.36,21.21,21.29]},{ x:'04/09/2024',y:[21.36,21.36,21.30,21.34]},{ x:'04/10/2024',y:[21.34,21.39,21.34,21.37]},{ x:'04/11/2024',y:[21.29,21.30,21.25,21.29]},{ x:'04/12/2024',y:[21.43,21.55,21.43,21.53]},{ x:'04/15/2024',y:[21.40,21.40,21.31,21.40]},{ x:'04/16/2024',y:[21.12,21.12,21.00,21.05]},{ x:'04/17/2024',y:[21.00,21.05,20.99,21.03]},{ x:'04/18/2024',y:[21.02,21.02,20.88,20.91]},{ x:'04/19/2024',y:[20.78,20.78,20.50,20.65]},{ x:'04/22/2024',y:[20.65,20.77,20.65,20.76]},{ x:'04/23/2024',y:[20.83,20.89,20.83,20.87]},{ x:'04/24/2024',y:[21.06,21.19,21.05,21.17]},{ x:'04/25/2024',y:[20.87,20.91,20.84,20.84]},{ x:'04/26/2024',y:[21.06,21.20,21.06,21.18]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00916 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());