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:'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]},{ x:'06/25/2024',y:[21.46,21.53,21.44,21.51]},{ x:'06/26/2024',y:[22.00,22.16,22.00,22.14]},{ x:'06/27/2024',y:[22.01,22.02,21.91,21.93]},{ x:'06/28/2024',y:[21.95,22.10,21.95,22.03]},{ x:'07/01/2024',y:[22.03,22.03,21.99,22.01]},{ x:'07/02/2024',y:[22.03,22.13,22.03,22.06]},{ x:'07/03/2024',y:[22.64,22.79,22.64,22.77]},{ x:'07/04/2024',y:[23.32,23.42,23.31,23.35]},{ x:'07/05/2024',y:[23.35,23.43,23.30,23.40]},{ x:'07/12/2024',y:[23.80,23.81,23.60,23.62]},{ x:'07/15/2024',y:[24.19,24.43,24.17,24.41]},{ x:'07/16/2024',y:[24.25,24.30,24.25,24.27]},{ x:'07/17/2024',y:[24.25,24.25,24.11,24.11]},{ x:'07/18/2024',y:[23.21,23.31,23.19,23.30]},{ x:'07/19/2024',y:[23.25,23.26,23.21,23.24]},{ x:'07/22/2024',y:[22.75,22.81,22.66,22.78]},{ x:'07/23/2024',y:[23.24,23.30,23.23,23.25]},{ x:'07/26/2024',y:[21.42,21.59,21.36,21.56]},{ x:'07/29/2024',y:[21.65,21.75,21.65,21.68]},{ x:'07/30/2024',y:[21.69,21.69,21.51,21.59]},{ x:'07/31/2024',y:[21.43,21.65,21.40,21.62]},{ x:'08/01/2024',y:[22.34,22.34,22.18,22.25]},{ x:'08/02/2024',y:[21.00,21.04,20.79,20.84]},{ x:'08/05/2024',y:[20.00,20.01,19.33,19.33]},{ x:'08/06/2024',y:[20.00,20.33,19.92,20.20]},{ x:'08/07/2024',y:[19.81,20.20,19.81,20.05]},{ x:'08/08/2024',y:[19.40,19.48,19.31,19.37]},{ x:'08/09/2024',y:[20.00,20.06,19.89,19.93]},{ x:'08/12/2024',y:[19.93,20.03,19.93,20.02]} ] }], 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());