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/24/2024',y:[25.07,25.14,24.99,24.99]},{ x:'04/25/2024',y:[24.91,24.91,24.69,24.77]},{ x:'04/26/2024',y:[24.80,25.00,24.80,24.88]},{ x:'04/29/2024',y:[24.95,25.68,24.95,25.67]},{ x:'04/30/2024',y:[25.60,25.79,25.58,25.60]},{ x:'05/02/2024',y:[25.58,25.73,25.56,25.63]},{ x:'05/03/2024',y:[25.68,25.83,25.65,25.68]},{ x:'05/06/2024',y:[25.78,26.34,25.78,26.23]},{ x:'05/07/2024',y:[26.26,26.34,26.11,26.20]},{ x:'05/08/2024',y:[26.16,26.16,26.01,26.07]},{ x:'05/09/2024',y:[26.10,26.20,25.90,25.90]},{ x:'05/10/2024',y:[25.96,26.62,25.96,26.62]},{ x:'05/13/2024',y:[26.65,26.68,26.50,26.53]},{ x:'05/14/2024',y:[26.53,26.56,26.29,26.29]},{ x:'05/15/2024',y:[26.29,26.87,26.29,26.62]},{ x:'05/16/2024',y:[26.68,26.93,26.68,26.80]},{ x:'05/17/2024',y:[26.80,27.00,26.68,26.95]},{ x:'05/20/2024',y:[26.95,27.10,26.86,27.06]},{ x:'05/21/2024',y:[27.06,27.06,26.57,26.78]},{ x:'05/22/2024',y:[26.80,26.98,26.73,26.85]},{ x:'05/23/2024',y:[26.85,26.85,26.50,26.61]},{ x:'05/24/2024',y:[26.50,26.61,26.37,26.50]},{ x:'06/11/2024',y:[26.89,27.15,26.89,26.97]},{ x:'06/12/2024',y:[26.97,26.97,26.76,26.85]},{ x:'06/13/2024',y:[26.88,26.99,26.88,26.91]},{ x:'06/14/2024',y:[26.92,26.94,26.88,26.94]},{ x:'06/17/2024',y:[26.94,27.05,26.93,27.04]},{ x:'06/18/2024',y:[27.04,27.30,27.04,27.30]},{ x:'06/19/2024',y:[27.40,27.54,27.23,27.54]},{ x:'06/20/2024',y:[27.54,27.60,27.40,27.58]},{ x:'06/21/2024',y:[27.55,27.68,27.50,27.68]},{ x:'06/24/2024',y:[27.68,27.80,27.47,27.68]},{ x:'06/25/2024',y:[27.69,27.89,27.62,27.72]},{ x:'06/26/2024',y:[27.72,27.73,27.44,27.48]},{ x:'06/27/2024',y:[27.30,27.32,27.16,27.30]},{ x:'06/28/2024',y:[27.36,27.69,27.36,27.55]},{ x:'07/01/2024',y:[27.55,27.76,27.55,27.69]},{ x:'07/02/2024',y:[27.69,27.85,27.59,27.76]},{ x:'07/03/2024',y:[27.74,28.51,27.74,28.50]},{ x:'07/04/2024',y:[28.81,28.81,28.50,28.58]},{ x:'07/05/2024',y:[28.64,28.76,28.63,28.70]},{ x:'07/12/2024',y:[29.50,29.81,29.31,29.57]},{ x:'07/15/2024',y:[29.61,29.62,29.24,29.32]},{ x:'07/16/2024',y:[29.40,29.51,29.25,29.27]},{ x:'07/17/2024',y:[29.36,29.50,29.18,29.18]},{ x:'07/18/2024',y:[29.16,29.41,28.97,29.25]},{ x:'07/19/2024',y:[29.24,29.24,28.58,28.99]},{ x:'07/22/2024',y:[28.70,28.70,28.11,28.31]},{ x:'07/23/2024',y:[28.54,28.78,28.52,28.69]},{ x:'07/26/2024',y:[28.05,28.59,27.97,28.39]},{ x:'07/29/2024',y:[28.60,28.90,28.60,28.78]},{ x:'07/30/2024',y:[28.77,28.77,28.26,28.57]},{ x:'07/31/2024',y:[28.38,29.05,28.38,29.03]},{ x:'08/01/2024',y:[29.20,29.29,29.00,29.04]},{ x:'08/02/2024',y:[28.48,28.80,28.33,28.60]},{ x:'08/05/2024',y:[28.13,28.13,26.50,26.50]},{ x:'08/06/2024',y:[26.94,27.40,26.14,27.01]},{ x:'08/07/2024',y:[27.20,27.59,27.18,27.56]},{ x:'08/08/2024',y:[27.40,27.68,27.22,27.59]},{ x:'08/09/2024',y:[27.81,28.36,27.81,28.29]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0055 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());