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/26/2024',y:[17.56,17.68,17.54,17.61]},{ x:'04/29/2024',y:[17.84,17.94,17.78,17.84]},{ x:'04/30/2024',y:[17.89,17.92,17.81,17.81]},{ x:'05/02/2024',y:[17.59,17.62,17.51,17.60]},{ x:'05/03/2024',y:[17.87,17.93,17.67,17.69]},{ x:'05/06/2024',y:[18.02,18.09,17.98,18.02]},{ x:'05/07/2024',y:[18.14,18.15,18.00,18.11]},{ x:'05/08/2024',y:[18.11,18.25,18.11,18.22]},{ x:'05/09/2024',y:[18.22,18.34,18.18,18.18]},{ x:'05/10/2024',y:[18.22,18.29,18.10,18.26]},{ x:'05/13/2024',y:[18.41,18.41,18.29,18.30]},{ x:'05/14/2024',y:[18.36,18.52,18.32,18.50]},{ x:'05/15/2024',y:[18.64,18.80,18.61,18.64]},{ x:'05/16/2024',y:[18.93,19.02,18.77,18.77]},{ x:'05/17/2024',y:[18.77,18.81,18.70,18.76]},{ x:'05/20/2024',y:[18.75,18.80,18.55,18.69]},{ x:'05/21/2024',y:[18.69,18.72,18.60,18.69]},{ x:'05/22/2024',y:[18.76,19.04,18.76,19.02]},{ x:'05/23/2024',y:[19.18,19.28,19.07,19.24]},{ x:'05/24/2024',y:[19.08,19.26,19.08,19.23]},{ x:'06/11/2024',y:[19.51,19.62,19.49,19.56]},{ x:'06/12/2024',y:[19.69,19.92,19.68,19.91]},{ x:'06/13/2024',y:[20.20,20.44,20.19,20.30]},{ x:'06/14/2024',y:[20.30,20.48,20.25,20.48]},{ x:'06/17/2024',y:[20.48,20.55,20.42,20.49]},{ x:'06/18/2024',y:[20.65,20.81,20.64,20.79]},{ x:'06/19/2024',y:[21.04,21.51,21.04,21.45]},{ x:'06/20/2024',y:[21.45,21.75,21.45,21.75]},{ x:'06/21/2024',y:[21.47,21.68,21.42,21.64]},{ x:'06/24/2024',y:[21.38,21.38,21.03,21.08]},{ x:'06/25/2024',y:[20.84,21.08,20.64,21.08]},{ x:'06/26/2024',y:[21.20,21.35,21.12,21.25]},{ x:'06/27/2024',y:[21.04,21.21,21.03,21.21]},{ x:'06/28/2024',y:[21.22,21.45,21.19,21.40]},{ x:'07/01/2024',y:[21.43,21.57,21.38,21.39]},{ x:'07/02/2024',y:[21.33,21.40,21.13,21.19]},{ x:'07/03/2024',y:[21.45,21.47,21.33,21.34]},{ x:'07/04/2024',y:[21.70,21.90,21.70,21.89]},{ x:'07/05/2024',y:[21.90,21.91,21.79,21.82]},{ x:'07/12/2024',y:[22.34,22.46,22.17,22.18]},{ x:'07/15/2024',y:[22.27,22.35,22.14,22.20]},{ x:'07/16/2024',y:[22.21,22.43,22.15,22.20]},{ x:'07/17/2024',y:[22.14,22.21,21.92,21.97]},{ x:'07/18/2024',y:[21.46,21.52,21.31,21.45]},{ x:'07/19/2024',y:[21.26,21.28,21.05,21.05]},{ x:'07/22/2024',y:[21.00,21.00,20.26,20.36]},{ x:'07/23/2024',y:[20.63,20.90,20.63,20.89]},{ x:'07/26/2024',y:[20.18,20.25,19.89,20.12]},{ x:'07/29/2024',y:[20.44,20.45,20.14,20.16]},{ x:'07/30/2024',y:[20.00,20.34,19.86,20.30]},{ x:'07/31/2024',y:[20.13,20.40,20.04,20.29]},{ x:'08/01/2024',y:[20.72,20.77,20.55,20.67]},{ x:'08/02/2024',y:[19.92,20.05,19.56,19.56]},{ x:'08/05/2024',y:[18.41,18.41,17.65,17.74]},{ x:'08/06/2024',y:[18.29,18.78,17.73,18.48]},{ x:'08/07/2024',y:[18.73,19.39,18.68,19.28]},{ x:'08/08/2024',y:[18.97,19.06,18.71,18.88]},{ x:'08/09/2024',y:[19.47,19.60,19.35,19.41]},{ x:'08/12/2024',y:[19.69,19.96,19.69,19.87]},{ x:'08/13/2024',y:[20.05,20.05,19.89,19.92]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());