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:[23.60,23.60,23.21,23.22]},{ x:'04/26/2024',y:[23.93,24.02,23.93,24.00]},{ x:'04/29/2024',y:[24.26,24.50,24.26,24.43]},{ x:'04/30/2024',y:[24.80,24.89,24.76,24.76]},{ x:'05/02/2024',y:[24.26,24.26,24.03,24.06]},{ x:'05/03/2024',y:[24.11,24.24,24.11,24.17]},{ x:'05/06/2024',y:[24.52,24.56,24.50,24.51]},{ x:'05/07/2024',y:[24.82,24.94,24.82,24.92]},{ x:'05/08/2024',y:[24.72,24.81,24.72,24.77]},{ x:'05/09/2024',y:[24.66,24.68,24.60,24.60]},{ x:'05/10/2024',y:[24.50,24.53,24.49,24.51]},{ x:'05/13/2024',y:[24.56,24.60,24.55,24.57]},{ x:'05/14/2024',y:[24.58,24.66,24.58,24.65]},{ x:'05/15/2024',y:[24.88,24.91,24.81,24.82]},{ x:'05/16/2024',y:[25.19,25.22,25.12,25.14]},{ x:'05/17/2024',y:[25.14,25.15,25.07,25.10]},{ x:'05/20/2024',y:[25.10,25.15,25.08,25.11]},{ x:'05/21/2024',y:[25.20,25.28,25.20,25.27]},{ x:'05/22/2024',y:[25.35,25.50,25.35,25.49]},{ x:'05/23/2024',y:[25.90,26.02,25.89,26.01]},{ x:'05/24/2024',y:[26.05,26.05,25.94,25.95]},{ x:'06/11/2024',y:[27.33,27.49,27.33,27.34]},{ x:'06/12/2024',y:[27.25,27.30,27.21,27.30]},{ x:'06/13/2024',y:[27.62,28.01,27.62,27.90]},{ x:'06/14/2024',y:[27.99,28.03,27.91,28.02]},{ x:'06/17/2024',y:[27.91,27.91,27.74,27.83]},{ x:'06/18/2024',y:[27.90,28.12,27.90,28.11]},{ x:'06/19/2024',y:[28.35,28.65,28.35,28.63]},{ x:'06/20/2024',y:[28.63,28.80,28.62,28.74]},{ x:'06/21/2024',y:[28.28,28.28,28.09,28.17]},{ x:'06/24/2024',y:[28.04,28.05,27.73,27.80]},{ x:'06/25/2024',y:[27.30,27.52,27.19,27.52]},{ x:'06/26/2024',y:[27.95,28.19,27.95,28.19]},{ x:'06/27/2024',y:[28.06,28.08,28.00,28.07]},{ x:'06/28/2024',y:[28.07,28.18,28.07,28.11]},{ x:'07/01/2024',y:[28.11,28.25,28.11,28.24]},{ x:'07/02/2024',y:[28.31,28.32,28.21,28.24]},{ x:'07/03/2024',y:[28.65,28.79,28.62,28.78]},{ x:'07/04/2024',y:[29.42,29.63,29.42,29.61]},{ x:'07/05/2024',y:[29.55,29.63,29.51,29.62]},{ x:'07/12/2024',y:[29.91,29.95,29.71,29.73]},{ x:'07/15/2024',y:[30.33,30.52,30.33,30.50]},{ x:'07/16/2024',y:[30.50,30.55,30.42,30.48]},{ x:'07/17/2024',y:[30.38,30.38,30.20,30.21]},{ x:'07/18/2024',y:[29.19,29.31,29.12,29.28]},{ x:'07/19/2024',y:[29.25,29.29,29.18,29.18]},{ x:'07/22/2024',y:[28.80,28.80,28.45,28.52]},{ x:'07/23/2024',y:[29.12,29.24,29.12,29.21]},{ x:'07/26/2024',y:[27.08,27.40,27.05,27.38]},{ x:'07/29/2024',y:[27.55,27.75,27.55,27.66]},{ x:'07/30/2024',y:[27.62,27.62,27.41,27.55]},{ x:'07/31/2024',y:[27.25,27.50,27.25,27.47]},{ x:'08/01/2024',y:[28.16,28.34,28.16,28.26]},{ x:'08/02/2024',y:[26.73,26.80,26.45,26.47]},{ x:'08/05/2024',y:[25.18,25.21,24.30,24.30]},{ x:'08/06/2024',y:[24.50,25.85,24.50,25.59]},{ x:'08/07/2024',y:[25.58,25.95,25.42,25.95]},{ x:'08/08/2024',y:[25.12,25.24,25.02,25.10]},{ x:'08/09/2024',y:[26.00,26.00,25.65,25.74]},{ x:'08/12/2024',y:[25.90,25.98,25.86,25.97]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00895 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());