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:[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]},{ x:'07/01/2024',y:[27.06,27.45,27.06,27.38]},{ x:'07/02/2024',y:[27.22,27.22,27.16,27.17]},{ x:'07/03/2024',y:[27.20,27.24,27.17,27.17]},{ x:'07/04/2024',y:[27.17,27.17,26.95,26.96]},{ x:'07/05/2024',y:[26.96,26.96,26.49,26.53]},{ x:'07/12/2024',y:[26.90,26.90,26.79,26.80]},{ x:'07/15/2024',y:[27.69,28.39,27.69,28.31]},{ x:'07/16/2024',y:[29.31,29.60,29.31,29.40]},{ x:'07/17/2024',y:[29.80,30.09,29.80,30.03]},{ x:'07/18/2024',y:[29.49,29.49,29.20,29.23]},{ x:'07/19/2024',y:[28.59,28.59,28.37,28.51]},{ x:'07/22/2024',y:[29.34,29.65,29.26,29.37]},{ x:'07/23/2024',y:[29.48,29.48,29.29,29.29]},{ x:'07/26/2024',y:[27.60,27.78,27.52,27.78]},{ x:'07/29/2024',y:[28.12,28.44,28.12,28.44]},{ x:'07/30/2024',y:[27.72,27.72,27.35,27.53]},{ x:'07/31/2024',y:[27.30,27.52,27.30,27.45]},{ x:'08/01/2024',y:[27.74,27.74,27.48,27.52]},{ x:'08/02/2024',y:[27.09,27.10,26.40,26.43]},{ x:'08/05/2024',y:[24.57,24.60,23.63,23.76]},{ x:'08/06/2024',y:[24.68,25.19,24.55,24.90]},{ x:'08/07/2024',y:[24.90,25.38,24.90,25.36]},{ x:'08/08/2024',y:[24.45,24.68,24.35,24.59]},{ x:'08/09/2024',y:[25.63,25.63,25.13,25.13]},{ x:'08/12/2024',y:[24.92,25.03,24.84,25.00]} ] }], 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());