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/13/2024',y:[27.70,27.73,27.70,27.72]},{ x:'03/14/2024',y:[27.89,27.89,27.84,27.86]},{ x:'03/15/2024',y:[27.34,27.44,27.34,27.44]},{ x:'03/18/2024',y:[27.40,27.54,27.40,27.54]},{ x:'03/19/2024',y:[27.37,27.42,27.31,27.42]},{ x:'03/20/2024',y:[27.59,27.62,27.58,27.60]},{ x:'03/21/2024',y:[27.89,27.92,27.83,27.92]},{ x:'03/22/2024',y:[28.00,28.02,27.98,28.01]},{ x:'03/25/2024',y:[27.87,27.91,27.72,27.73]},{ x:'03/26/2024',y:[27.79,27.86,27.77,27.86]},{ x:'03/27/2024',y:[27.87,27.94,27.87,27.92]},{ x:'03/28/2024',y:[28.25,28.25,28.14,28.18]},{ x:'03/29/2024',y:[28.17,28.18,28.17,28.17]},{ x:'04/01/2024',y:[28.20,28.21,28.19,28.19]},{ x:'04/02/2024',y:[27.94,27.99,27.94,27.95]},{ x:'04/03/2024',y:[27.36,27.40,27.30,27.30]},{ x:'04/08/2024',y:[27.24,27.24,27.21,27.24]},{ x:'04/09/2024',y:[27.31,27.31,27.24,27.29]},{ x:'04/10/2024',y:[27.59,27.59,27.52,27.55]},{ x:'04/11/2024',y:[27.11,27.23,27.11,27.22]},{ x:'04/12/2024',y:[27.33,27.41,27.32,27.41]},{ x:'04/15/2024',y:[26.98,27.03,26.97,27.03]},{ x:'04/16/2024',y:[26.69,26.79,26.69,26.79]},{ x:'04/17/2024',y:[26.64,26.64,26.60,26.61]},{ x:'04/18/2024',y:[26.39,26.39,26.34,26.35]},{ x:'04/19/2024',y:[26.19,26.19,25.99,26.02]},{ x:'04/22/2024',y:[26.32,26.49,26.32,26.49]},{ x:'04/23/2024',y:[26.64,26.66,26.60,26.63]},{ x:'04/24/2024',y:[26.97,27.01,26.97,27.01]},{ x:'04/25/2024',y:[27.04,27.04,26.94,26.94]},{ x:'04/26/2024',y:[26.57,26.57,26.49,26.53]},{ x:'04/29/2024',y:[26.80,26.89,26.80,26.88]},{ x:'04/30/2024',y:[27.20,27.20,27.13,27.19]},{ x:'05/02/2024',y:[27.70,27.73,27.63,27.63]},{ x:'05/03/2024',y:[27.90,27.93,27.85,27.85]},{ x:'05/06/2024',y:[28.14,28.16,28.11,28.11]},{ x:'05/07/2024',y:[28.00,28.08,28.00,28.04]},{ x:'05/08/2024',y:[28.11,28.15,28.08,28.12]},{ x:'05/09/2024',y:[27.97,27.99,27.95,27.95]},{ x:'05/10/2024',y:[28.06,28.08,28.06,28.06]},{ x:'05/13/2024',y:[27.79,27.86,27.79,27.85]},{ x:'05/14/2024',y:[28.10,28.15,28.08,28.09]},{ x:'05/15/2024',y:[28.19,28.20,28.09,28.09]},{ x:'05/16/2024',y:[28.20,28.32,28.20,28.24]},{ x:'05/17/2024',y:[28.32,28.43,28.32,28.37]},{ x:'05/20/2024',y:[28.32,28.34,28.31,28.33]},{ x:'05/21/2024',y:[28.46,28.57,28.46,28.55]},{ x:'05/22/2024',y:[28.48,28.52,28.44,28.50]},{ x:'05/23/2024',y:[28.69,28.74,28.69,28.71]},{ x:'05/24/2024',y:[28.30,28.36,28.30,28.34]},{ x:'06/11/2024',y:[29.02,29.12,29.00,29.12]},{ x:'06/12/2024',y:[29.08,29.09,29.05,29.08]},{ x:'06/13/2024',y:[29.19,29.19,29.10,29.10]},{ x:'06/14/2024',y:[29.09,29.12,29.04,29.04]},{ x:'06/17/2024',y:[28.87,28.95,28.87,28.90]},{ x:'06/18/2024',y:[28.71,28.71,28.63,28.68]},{ x:'06/19/2024',y:[28.40,28.43,28.37,28.40]},{ x:'06/20/2024',y:[28.40,28.49,28.40,28.49]},{ x:'06/21/2024',y:[28.81,28.95,28.81,28.91]},{ x:'06/24/2024',y:[29.20,29.22,29.15,29.22]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00678 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());