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/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]},{ x:'04/30/2024',y:[20.70,20.77,20.70,20.70]},{ x:'05/02/2024',y:[19.90,20.02,19.80,20.00]},{ x:'05/03/2024',y:[20.05,20.16,20.05,20.06]},{ x:'05/06/2024',y:[20.27,20.35,20.27,20.32]},{ x:'05/07/2024',y:[20.61,20.69,20.61,20.67]},{ x:'05/08/2024',y:[20.64,20.64,20.52,20.52]},{ x:'05/09/2024',y:[20.50,20.50,20.43,20.44]},{ x:'05/10/2024',y:[20.41,20.45,20.37,20.38]},{ x:'05/13/2024',y:[20.33,20.37,20.30,20.36]},{ x:'05/14/2024',y:[20.37,20.41,20.37,20.38]},{ x:'05/15/2024',y:[20.63,20.64,20.55,20.55]},{ x:'05/16/2024',y:[20.76,20.81,20.74,20.77]},{ x:'05/17/2024',y:[20.72,20.76,20.68,20.74]},{ x:'05/20/2024',y:[20.75,20.87,20.74,20.85]},{ x:'05/21/2024',y:[20.85,20.87,20.75,20.85]},{ x:'05/22/2024',y:[20.94,21.03,20.94,21.01]},{ x:'05/23/2024',y:[21.15,21.27,21.15,21.23]},{ x:'05/24/2024',y:[21.07,21.09,20.95,20.95]},{ x:'06/11/2024',y:[21.80,21.80,21.68,21.69]},{ x:'06/12/2024',y:[21.63,21.63,21.53,21.54]},{ x:'06/13/2024',y:[21.90,22.30,21.87,22.20]},{ x:'06/14/2024',y:[22.22,22.22,22.15,22.20]},{ x:'06/17/2024',y:[21.96,22.06,21.94,22.05]},{ x:'06/18/2024',y:[22.15,22.20,22.05,22.16]},{ x:'06/19/2024',y:[22.22,22.29,22.22,22.27]},{ x:'06/20/2024',y:[22.28,22.42,22.28,22.40]},{ x:'06/21/2024',y:[22.03,22.08,21.98,22.00]},{ x:'06/24/2024',y:[21.97,21.97,21.76,21.78]} ] }], 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());