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/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]},{ x:'06/25/2024',y:[29.57,29.86,29.57,29.81]},{ x:'06/26/2024',y:[29.81,29.89,29.81,29.87]},{ x:'06/27/2024',y:[29.33,29.44,29.26,29.41]},{ x:'06/28/2024',y:[29.58,29.60,29.53,29.53]},{ x:'07/01/2024',y:[29.41,29.42,29.36,29.37]},{ x:'07/02/2024',y:[29.30,29.35,29.30,29.33]},{ x:'07/03/2024',y:[29.17,29.17,29.10,29.15]},{ x:'07/04/2024',y:[28.89,28.89,28.79,28.83]},{ x:'07/05/2024',y:[28.76,28.77,28.70,28.77]},{ x:'07/12/2024',y:[30.69,30.80,30.69,30.74]},{ x:'07/15/2024',y:[31.05,31.20,31.05,31.17]},{ x:'07/16/2024',y:[31.25,31.25,31.20,31.23]},{ x:'07/17/2024',y:[31.57,31.63,31.57,31.59]},{ x:'07/18/2024',y:[31.48,31.51,31.46,31.49]},{ x:'07/19/2024',y:[31.13,31.17,31.10,31.14]},{ x:'07/22/2024',y:[31.15,31.31,31.09,31.24]},{ x:'07/23/2024',y:[31.36,31.37,31.31,31.35]},{ x:'07/26/2024',y:[31.68,31.72,31.57,31.72]},{ x:'07/29/2024',y:[32.04,32.09,32.00,32.04]},{ x:'07/30/2024',y:[31.70,31.70,31.61,31.70]},{ x:'07/31/2024',y:[31.73,31.82,31.73,31.78]},{ x:'08/01/2024',y:[31.59,31.62,31.54,31.61]},{ x:'08/02/2024',y:[31.16,31.35,31.16,31.28]},{ x:'08/05/2024',y:[30.54,30.54,29.76,29.78]},{ x:'08/06/2024',y:[30.37,30.40,30.21,30.25]},{ x:'08/07/2024',y:[30.43,30.51,30.43,30.51]},{ x:'08/08/2024',y:[29.64,29.72,29.57,29.58]},{ x:'08/09/2024',y:[30.23,30.23,29.94,30.03]},{ x:'08/12/2024',y:[30.08,30.12,30.04,30.11]},{ x:'08/13/2024',y:[30.10,30.10,30.03,30.06]},{ x:'08/14/2024',y:[30.26,30.28,30.19,30.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());