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.63,26.97,26.63,26.95]},{ x:'04/30/2024',y:[26.93,27.00,26.84,26.87]},{ x:'05/02/2024',y:[26.80,27.00,26.80,26.95]},{ x:'05/03/2024',y:[27.17,27.17,26.93,26.93]},{ x:'05/06/2024',y:[27.10,27.56,27.10,27.46]},{ x:'05/07/2024',y:[27.52,27.60,27.34,27.44]},{ x:'05/08/2024',y:[27.44,27.50,27.37,27.46]},{ x:'05/09/2024',y:[27.42,27.52,27.32,27.32]},{ x:'05/10/2024',y:[27.40,27.89,27.40,27.88]},{ x:'05/13/2024',y:[27.88,27.95,27.70,27.79]},{ x:'05/14/2024',y:[27.79,27.84,27.61,27.61]},{ x:'05/15/2024',y:[27.75,28.10,27.75,27.92]},{ x:'05/16/2024',y:[28.05,28.21,28.05,28.09]},{ x:'05/17/2024',y:[28.08,28.24,28.04,28.20]},{ x:'05/20/2024',y:[28.22,28.26,28.11,28.21]},{ x:'05/21/2024',y:[28.17,28.17,27.80,27.97]},{ x:'05/22/2024',y:[27.98,28.16,27.96,28.07]},{ x:'05/23/2024',y:[27.75,27.95,27.71,27.95]},{ x:'05/24/2024',y:[27.77,27.87,27.72,27.77]},{ x:'06/11/2024',y:[27.71,27.96,27.71,27.82]},{ x:'06/12/2024',y:[27.79,27.81,27.70,27.74]},{ x:'06/13/2024',y:[27.88,27.92,27.81,27.85]},{ x:'06/14/2024',y:[27.84,27.97,27.84,27.97]},{ x:'06/17/2024',y:[27.87,27.98,27.86,27.88]},{ x:'06/18/2024',y:[27.90,28.19,27.90,28.17]},{ x:'06/19/2024',y:[28.21,28.36,28.17,28.31]},{ x:'06/20/2024',y:[28.28,28.45,28.27,28.41]},{ x:'06/21/2024',y:[28.38,28.50,28.32,28.50]},{ x:'06/24/2024',y:[28.38,28.50,28.20,28.50]},{ x:'06/25/2024',y:[28.61,28.64,28.38,28.50]},{ x:'06/26/2024',y:[28.40,28.50,28.18,28.27]},{ x:'06/27/2024',y:[28.00,28.21,27.94,28.19]},{ x:'06/28/2024',y:[28.22,28.53,28.22,28.39]},{ x:'07/01/2024',y:[28.35,28.55,28.35,28.47]},{ x:'07/02/2024',y:[28.35,28.58,28.28,28.47]},{ x:'07/03/2024',y:[28.60,29.07,28.58,29.00]},{ x:'07/04/2024',y:[29.16,29.27,29.10,29.20]},{ x:'07/05/2024',y:[29.24,29.35,29.23,29.25]},{ x:'07/12/2024',y:[29.78,30.00,29.78,29.83]},{ x:'07/15/2024',y:[29.88,29.90,29.57,29.73]},{ x:'07/16/2024',y:[29.77,29.85,29.66,29.70]},{ x:'07/17/2024',y:[29.83,29.90,29.64,29.73]},{ x:'07/18/2024',y:[29.63,29.90,29.50,29.77]},{ x:'07/19/2024',y:[29.71,29.71,29.13,29.41]},{ x:'07/22/2024',y:[29.37,29.37,28.87,29.12]},{ x:'07/23/2024',y:[29.23,29.48,29.23,29.38]},{ x:'07/26/2024',y:[28.93,29.23,28.93,29.12]},{ x:'07/29/2024',y:[29.32,29.55,29.31,29.37]},{ x:'07/30/2024',y:[29.29,29.30,28.84,29.11]},{ x:'07/31/2024',y:[29.07,29.44,29.06,29.42]},{ x:'08/01/2024',y:[29.45,29.49,29.41,29.43]},{ x:'08/02/2024',y:[29.02,29.14,28.82,29.06]},{ x:'08/05/2024',y:[28.11,28.13,27.04,27.20]},{ x:'08/06/2024',y:[27.92,28.20,27.05,27.89]},{ x:'08/07/2024',y:[27.80,28.31,27.80,28.26]},{ x:'08/08/2024',y:[28.03,28.35,27.81,28.09]},{ x:'08/09/2024',y:[28.52,29.02,28.48,28.73]},{ x:'08/12/2024',y:[28.99,29.10,28.83,28.86]},{ x:'08/13/2024',y:[28.90,28.95,28.75,28.84]},{ x:'08/14/2024',y:[29.07,29.32,29.02,29.13]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00701 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());