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:'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]},{ x:'04/29/2024',y:[21.18,21.20,21.17,21.18]},{ x:'04/30/2024',y:[21.20,21.20,21.12,21.13]},{ x:'05/02/2024',y:[21.06,21.06,20.84,20.97]},{ x:'05/03/2024',y:[21.26,21.26,21.11,21.12]},{ x:'05/06/2024',y:[21.17,21.30,21.17,21.26]},{ x:'05/07/2024',y:[21.32,21.51,21.32,21.50]},{ x:'05/08/2024',y:[21.51,21.56,21.51,21.52]},{ x:'05/09/2024',y:[21.50,21.50,21.46,21.46]},{ x:'05/10/2024',y:[21.50,21.64,21.50,21.62]},{ x:'05/13/2024',y:[21.63,21.63,21.55,21.61]},{ x:'05/14/2024',y:[21.61,21.61,21.56,21.58]},{ x:'05/15/2024',y:[21.62,21.66,21.61,21.62]},{ x:'05/16/2024',y:[21.62,21.76,21.62,21.68]},{ x:'05/17/2024',y:[21.52,21.73,21.52,21.69]},{ x:'05/20/2024',y:[21.70,21.83,21.68,21.81]},{ x:'05/21/2024',y:[21.82,21.84,21.80,21.80]},{ x:'05/22/2024',y:[21.80,21.87,21.80,21.85]},{ x:'05/23/2024',y:[21.85,21.87,21.78,21.85]},{ x:'05/24/2024',y:[21.64,21.64,21.56,21.59]},{ x:'06/11/2024',y:[21.91,21.91,21.87,21.90]},{ x:'06/12/2024',y:[22.13,22.17,22.13,22.17]},{ x:'06/13/2024',y:[22.25,22.34,22.25,22.34]},{ x:'06/14/2024',y:[22.35,22.40,22.33,22.39]},{ x:'06/17/2024',y:[22.34,22.37,22.32,22.34]},{ x:'06/18/2024',y:[22.40,22.59,22.40,22.55]},{ x:'06/19/2024',y:[22.55,22.56,22.44,22.54]},{ x:'06/20/2024',y:[22.40,22.40,22.29,22.30]},{ x:'06/21/2024',y:[22.30,22.30,22.25,22.29]},{ x:'06/24/2024',y:[22.30,22.34,22.28,22.28]},{ x:'06/25/2024',y:[22.31,22.36,22.31,22.36]},{ x:'06/26/2024',y:[22.36,22.50,22.36,22.48]},{ x:'06/27/2024',y:[22.50,22.63,22.50,22.62]},{ x:'06/28/2024',y:[22.67,22.88,22.67,22.84]} ] }], 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());