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/19/2024',y:[27.92,27.92,27.75,27.86]},{ x:'03/20/2024',y:[27.50,27.50,27.15,27.21]},{ x:'03/21/2024',y:[28.91,29.45,28.91,29.44]},{ x:'03/22/2024',y:[29.44,29.58,29.42,29.58]},{ x:'03/25/2024',y:[29.10,29.16,28.72,28.79]},{ x:'03/26/2024',y:[30.16,30.16,30.01,30.06]},{ x:'03/27/2024',y:[30.00,30.25,30.00,30.23]},{ x:'03/28/2024',y:[30.34,30.34,30.23,30.27]},{ x:'03/29/2024',y:[30.10,30.12,29.74,29.82]},{ x:'04/01/2024',y:[30.04,30.04,29.77,29.78]},{ x:'04/02/2024',y:[29.22,29.22,29.07,29.08]},{ x:'04/03/2024',y:[28.65,28.65,28.22,28.43]},{ x:'04/08/2024',y:[28.13,28.29,27.90,27.96]},{ x:'04/09/2024',y:[28.14,28.35,28.14,28.35]},{ x:'04/10/2024',y:[27.88,27.88,27.78,27.81]},{ x:'04/11/2024',y:[27.81,27.83,27.70,27.80]},{ x:'04/12/2024',y:[28.18,28.20,28.06,28.20]},{ x:'04/15/2024',y:[27.87,27.87,27.01,27.25]},{ x:'04/16/2024',y:[26.61,26.61,26.11,26.27]},{ x:'04/17/2024',y:[26.36,26.50,26.22,26.42]},{ x:'04/18/2024',y:[24.41,24.41,23.84,23.85]},{ x:'04/19/2024',y:[23.84,23.84,23.35,23.52]},{ x:'04/22/2024',y:[23.73,23.95,23.73,23.94]},{ x:'04/23/2024',y:[24.77,25.07,24.77,24.99]},{ x:'04/24/2024',y:[25.54,25.66,25.54,25.64]},{ x:'04/25/2024',y:[25.17,25.17,24.98,24.99]},{ x:'04/26/2024',y:[25.17,25.17,25.02,25.02]},{ x:'04/29/2024',y:[25.44,25.45,25.41,25.41]},{ x:'04/30/2024',y:[25.11,25.16,25.08,25.11]},{ x:'05/02/2024',y:[23.93,23.95,23.71,23.84]},{ x:'05/03/2024',y:[24.25,24.36,24.25,24.29]},{ x:'05/06/2024',y:[24.61,24.74,24.61,24.69]},{ x:'05/07/2024',y:[25.17,25.28,25.15,25.26]},{ x:'05/08/2024',y:[25.12,25.12,24.99,25.03]},{ x:'05/09/2024',y:[24.99,24.99,24.86,24.88]},{ x:'05/10/2024',y:[25.07,25.13,25.06,25.10]},{ x:'05/13/2024',y:[24.51,24.61,24.48,24.61]},{ x:'05/14/2024',y:[24.79,24.79,24.59,24.61]},{ x:'05/15/2024',y:[24.93,24.93,24.82,24.85]},{ x:'05/16/2024',y:[25.90,25.98,25.85,25.86]},{ x:'05/17/2024',y:[25.56,25.57,25.46,25.56]},{ x:'05/20/2024',y:[25.97,26.04,25.90,26.03]},{ x:'05/21/2024',y:[27.05,27.37,27.05,27.32]},{ x:'05/22/2024',y:[27.00,27.02,26.94,26.98]},{ x:'05/23/2024',y:[26.93,26.93,26.75,26.86]},{ x:'05/24/2024',y:[26.20,26.22,26.17,26.21]},{ x:'06/11/2024',y:[27.57,27.57,27.21,27.22]},{ x:'06/12/2024',y:[27.21,27.21,27.06,27.13]},{ x:'06/13/2024',y:[27.80,27.84,27.69,27.74]},{ x:'06/14/2024',y:[27.45,27.52,27.38,27.52]},{ x:'06/17/2024',y:[27.46,27.46,27.23,27.33]},{ x:'06/18/2024',y:[27.33,27.39,27.31,27.33]},{ x:'06/19/2024',y:[27.33,27.45,27.33,27.42]},{ x:'06/20/2024',y:[27.50,27.51,27.43,27.50]},{ x:'06/21/2024',y:[27.50,27.50,27.38,27.39]},{ x:'06/24/2024',y:[27.36,27.36,26.87,26.90]},{ x:'06/25/2024',y:[26.45,26.70,26.44,26.69]},{ x:'06/26/2024',y:[27.11,27.20,27.07,27.18]},{ x:'06/27/2024',y:[27.14,27.14,26.92,27.02]},{ x:'06/28/2024',y:[27.30,27.40,27.28,27.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00909 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());