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/24/2024',y:[24.99,25.30,24.95,25.26]},{ x:'04/25/2024',y:[25.00,25.22,25.00,25.13]},{ x:'04/26/2024',y:[25.13,25.31,25.10,25.20]},{ x:'04/29/2024',y:[25.50,25.75,25.45,25.73]},{ x:'04/30/2024',y:[25.86,25.91,25.76,25.78]},{ x:'05/02/2024',y:[25.78,25.93,25.68,25.90]},{ x:'05/03/2024',y:[26.08,26.22,25.94,25.96]},{ x:'05/06/2024',y:[26.23,26.51,26.22,26.46]},{ x:'05/07/2024',y:[26.61,26.66,26.41,26.50]},{ x:'05/08/2024',y:[26.40,26.55,26.24,26.51]},{ x:'05/09/2024',y:[26.50,26.50,26.18,26.23]},{ x:'05/10/2024',y:[26.26,26.35,26.10,26.33]},{ x:'05/13/2024',y:[26.40,26.40,26.10,26.17]},{ x:'05/14/2024',y:[26.18,26.25,26.08,26.22]},{ x:'05/15/2024',y:[26.24,26.42,26.23,26.24]},{ x:'05/16/2024',y:[26.35,26.59,26.35,26.49]},{ x:'05/17/2024',y:[26.50,26.51,26.38,26.51]},{ x:'05/20/2024',y:[26.51,26.54,26.27,26.45]},{ x:'05/21/2024',y:[26.45,26.45,26.28,26.37]},{ x:'05/22/2024',y:[26.40,26.60,26.40,26.60]},{ x:'05/23/2024',y:[26.60,26.65,26.42,26.61]},{ x:'05/24/2024',y:[26.55,26.61,26.40,26.59]},{ x:'06/11/2024',y:[27.10,27.33,27.01,27.30]},{ x:'06/12/2024',y:[27.40,27.65,27.31,27.65]},{ x:'06/13/2024',y:[27.85,28.04,27.76,27.88]},{ x:'06/14/2024',y:[27.83,27.98,27.75,27.96]},{ x:'06/17/2024',y:[27.96,28.15,27.90,28.12]},{ x:'06/18/2024',y:[28.23,28.29,28.11,28.28]},{ x:'06/19/2024',y:[27.82,28.04,27.81,27.82]},{ x:'06/20/2024',y:[27.82,27.84,27.68,27.82]},{ x:'06/21/2024',y:[27.68,27.80,27.60,27.63]},{ x:'06/24/2024',y:[27.38,27.38,27.16,27.24]},{ x:'06/25/2024',y:[27.14,27.40,26.87,27.40]},{ x:'06/26/2024',y:[27.42,27.62,27.39,27.51]},{ x:'06/27/2024',y:[27.37,27.47,27.27,27.41]},{ x:'06/28/2024',y:[27.41,27.57,27.35,27.44]},{ x:'07/01/2024',y:[27.49,27.55,27.40,27.43]},{ x:'07/02/2024',y:[27.43,27.50,27.17,27.27]},{ x:'07/03/2024',y:[27.33,27.51,27.23,27.24]},{ x:'07/04/2024',y:[27.24,27.44,27.17,27.23]},{ x:'07/05/2024',y:[27.27,27.35,27.22,27.26]},{ x:'07/12/2024',y:[27.32,27.60,27.27,27.51]},{ x:'07/15/2024',y:[27.51,27.62,27.38,27.52]},{ x:'07/16/2024',y:[27.52,27.63,27.47,27.52]},{ x:'07/17/2024',y:[27.52,27.63,27.47,27.51]},{ x:'07/18/2024',y:[27.30,27.62,27.24,27.60]},{ x:'07/19/2024',y:[27.58,27.59,27.06,27.19]},{ x:'07/22/2024',y:[27.18,27.18,26.56,26.77]},{ x:'07/23/2024',y:[26.97,27.15,26.97,27.12]},{ x:'07/26/2024',y:[26.58,26.88,26.58,26.87]},{ x:'07/29/2024',y:[27.08,27.45,26.82,26.87]},{ x:'07/30/2024',y:[26.86,26.86,26.39,26.70]},{ x:'07/31/2024',y:[26.66,26.95,26.59,26.93]},{ x:'08/01/2024',y:[27.27,27.29,27.07,27.22]},{ x:'08/02/2024',y:[26.90,26.91,26.62,26.79]},{ x:'08/05/2024',y:[26.17,26.34,24.88,24.91]},{ x:'08/06/2024',y:[25.45,25.71,24.64,25.48]},{ x:'08/07/2024',y:[25.52,26.07,25.44,25.99]},{ x:'08/08/2024',y:[25.66,26.05,25.50,25.79]},{ x:'08/09/2024',y:[26.51,26.60,26.21,26.31]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00915 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());