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/21/2024',y:[24.90,25.30,24.90,25.26]},{ x:'03/22/2024',y:[25.31,25.45,25.12,25.30]},{ x:'03/25/2024',y:[25.25,25.25,25.12,25.17]},{ x:'03/26/2024',y:[25.20,25.39,25.14,25.30]},{ x:'03/27/2024',y:[25.26,25.38,25.26,25.30]},{ x:'03/28/2024',y:[25.39,25.39,25.18,25.18]},{ x:'03/29/2024',y:[25.18,25.39,25.18,25.38]},{ x:'04/01/2024',y:[25.38,25.47,25.32,25.32]},{ x:'04/02/2024',y:[25.32,25.32,25.23,25.25]},{ x:'04/03/2024',y:[25.25,25.25,25.03,25.03]},{ x:'04/08/2024',y:[25.03,25.23,25.03,25.23]},{ x:'04/09/2024',y:[25.23,25.41,25.23,25.39]},{ x:'04/10/2024',y:[25.39,25.50,25.36,25.38]},{ x:'04/11/2024',y:[25.35,25.38,25.22,25.28]},{ x:'04/12/2024',y:[25.27,25.27,25.13,25.15]},{ x:'04/15/2024',y:[25.06,25.23,24.98,25.15]},{ x:'04/16/2024',y:[25.03,25.11,24.49,24.57]},{ x:'04/17/2024',y:[24.57,24.73,24.52,24.70]},{ x:'04/18/2024',y:[24.69,24.92,24.63,24.89]},{ x:'04/19/2024',y:[24.70,24.75,24.20,24.47]},{ x:'04/22/2024',y:[24.47,24.90,24.47,24.86]},{ x:'04/23/2024',y:[24.88,25.06,24.88,25.01]},{ 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]} ] }], 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());