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:[24.70,24.73,24.67,24.68]},{ x:'04/26/2024',y:[24.56,24.58,24.53,24.57]},{ x:'04/29/2024',y:[24.70,24.77,24.70,24.73]},{ x:'04/30/2024',y:[24.79,24.89,24.79,24.88]},{ x:'05/02/2024',y:[24.82,24.84,24.77,24.84]},{ x:'05/03/2024',y:[24.85,24.85,24.77,24.81]},{ x:'05/06/2024',y:[24.97,25.00,24.93,25.00]},{ x:'05/07/2024',y:[25.09,25.22,25.07,25.22]},{ x:'05/08/2024',y:[25.26,25.32,25.24,25.27]},{ x:'05/09/2024',y:[25.12,25.13,25.09,25.12]},{ x:'05/10/2024',y:[25.30,25.33,25.28,25.28]},{ x:'05/13/2024',y:[25.23,25.23,25.16,25.17]},{ x:'05/14/2024',y:[25.21,25.21,25.18,25.19]},{ x:'05/15/2024',y:[25.28,25.32,25.20,25.23]},{ x:'05/16/2024',y:[25.53,25.57,25.48,25.55]},{ x:'05/17/2024',y:[25.50,25.54,25.46,25.51]},{ x:'05/20/2024',y:[25.40,25.41,25.35,25.38]},{ x:'05/21/2024',y:[25.31,25.35,25.31,25.34]},{ x:'05/22/2024',y:[25.42,25.45,25.41,25.42]},{ x:'05/23/2024',y:[25.46,25.48,25.41,25.41]},{ x:'05/24/2024',y:[25.38,25.38,25.31,25.32]},{ x:'06/11/2024',y:[25.45,25.50,25.41,25.45]},{ x:'06/12/2024',y:[25.58,25.65,25.58,25.64]},{ x:'06/13/2024',y:[25.77,25.81,25.75,25.78]},{ x:'06/14/2024',y:[26.05,26.17,26.04,26.10]},{ x:'06/17/2024',y:[26.21,26.27,26.20,26.25]},{ x:'06/18/2024',y:[26.21,26.22,26.16,26.17]},{ x:'06/19/2024',y:[26.31,26.36,26.31,26.34]},{ x:'06/20/2024',y:[26.33,26.33,26.23,26.25]},{ x:'06/21/2024',y:[26.20,26.21,26.15,26.18]},{ x:'06/24/2024',y:[26.21,26.26,26.20,26.22]},{ x:'06/25/2024',y:[26.12,26.18,26.10,26.16]},{ x:'06/26/2024',y:[26.13,26.16,26.09,26.13]},{ x:'06/27/2024',y:[25.94,25.94,25.83,25.87]},{ x:'06/28/2024',y:[25.95,26.01,25.85,25.87]},{ x:'07/01/2024',y:[25.47,25.50,25.42,25.50]},{ x:'07/02/2024',y:[25.38,25.38,25.30,25.35]},{ x:'07/03/2024',y:[25.36,25.47,25.34,25.45]},{ x:'07/04/2024',y:[25.67,25.68,25.56,25.57]},{ x:'07/05/2024',y:[25.56,25.57,25.51,25.56]},{ x:'07/12/2024',y:[25.98,26.07,25.98,26.07]},{ x:'07/15/2024',y:[26.00,26.00,25.92,25.98]},{ x:'07/16/2024',y:[26.02,26.08,26.01,26.08]},{ x:'07/17/2024',y:[26.24,26.33,26.24,26.30]},{ x:'07/18/2024',y:[26.26,26.27,26.22,26.26]},{ x:'07/19/2024',y:[26.24,26.26,26.19,26.24]},{ x:'07/22/2024',y:[26.24,26.31,26.19,26.30]},{ x:'07/23/2024',y:[26.19,26.19,26.12,26.16]},{ x:'07/26/2024',y:[26.10,26.10,25.99,26.04]},{ x:'07/29/2024',y:[26.19,26.29,26.19,26.25]},{ x:'07/30/2024',y:[26.30,26.37,26.30,26.32]},{ x:'07/31/2024',y:[26.37,26.48,26.37,26.43]},{ x:'08/01/2024',y:[26.63,26.76,26.62,26.69]},{ x:'08/02/2024',y:[26.94,27.15,26.94,27.02]},{ x:'08/05/2024',y:[27.77,27.92,27.63,27.74]},{ x:'08/06/2024',y:[27.45,27.63,27.40,27.58]},{ x:'08/07/2024',y:[27.30,27.30,27.19,27.25]},{ x:'08/08/2024',y:[27.08,27.08,26.97,26.99]},{ x:'08/09/2024',y:[26.81,26.81,26.64,26.72]},{ x:'08/12/2024',y:[26.89,26.97,26.86,26.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00857b 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());