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:'03/15/2024',y:[25.59,25.63,25.52,25.62]},{ x:'03/18/2024',y:[25.58,25.66,25.58,25.61]},{ x:'03/19/2024',y:[25.60,25.72,25.58,25.71]},{ x:'03/20/2024',y:[25.86,25.90,25.80,25.90]},{ x:'03/21/2024',y:[25.56,25.56,25.45,25.54]},{ x:'03/22/2024',y:[25.60,25.76,25.60,25.75]},{ x:'03/25/2024',y:[25.85,25.95,25.75,25.78]},{ x:'03/26/2024',y:[25.75,25.75,25.69,25.71]},{ x:'03/27/2024',y:[25.75,25.82,25.75,25.79]},{ x:'03/28/2024',y:[25.92,25.94,25.90,25.91]},{ x:'03/29/2024',y:[25.95,25.95,25.91,25.94]},{ x:'04/01/2024',y:[25.94,25.94,25.86,25.91]},{ x:'04/02/2024',y:[25.66,25.71,25.61,25.68]},{ x:'04/03/2024',y:[25.65,25.65,25.56,25.59]},{ x:'04/08/2024',y:[25.46,25.47,25.34,25.39]},{ x:'04/09/2024',y:[25.39,25.52,25.39,25.46]},{ x:'04/10/2024',y:[25.55,25.55,25.49,25.50]},{ x:'04/11/2024',y:[25.26,25.30,25.14,25.22]},{ x:'04/12/2024',y:[25.16,25.20,25.11,25.18]},{ x:'04/15/2024',y:[25.19,25.25,25.15,25.20]},{ x:'04/16/2024',y:[25.15,25.17,25.11,25.11]},{ x:'04/17/2024',y:[24.71,24.71,24.60,24.62]},{ x:'04/18/2024',y:[24.78,24.85,24.75,24.77]},{ x:'04/19/2024',y:[24.76,25.23,24.74,25.00]},{ x:'04/22/2024',y:[24.84,24.84,24.75,24.79]},{ x:'04/23/2024',y:[24.90,24.94,24.86,24.91]},{ x:'04/24/2024',y:[24.87,24.87,24.74,24.80]},{ 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]} ] }], 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());