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/01/2024',y:[8.41,8.41,8.26,8.26]},{ x:'04/02/2024',y:[8.26,8.34,8.26,8.27]},{ x:'04/03/2024',y:[8.27,8.37,8.27,8.37]},{ x:'04/08/2024',y:[8.37,8.37,8.26,8.31]},{ x:'04/09/2024',y:[8.31,8.33,8.29,8.30]},{ x:'04/10/2024',y:[8.38,8.46,8.38,8.39]},{ x:'04/11/2024',y:[8.41,8.45,8.39,8.45]},{ x:'04/12/2024',y:[8.43,8.45,8.41,8.41]},{ x:'04/15/2024',y:[8.40,8.40,8.28,8.30]},{ x:'04/16/2024',y:[8.15,8.16,7.96,8.00]},{ x:'04/17/2024',y:[8.00,8.06,8.00,8.05]},{ x:'04/18/2024',y:[8.05,8.05,7.97,8.03]},{ x:'04/19/2024',y:[7.95,7.95,7.68,7.84]},{ x:'04/22/2024',y:[7.84,7.86,7.71,7.71]},{ x:'04/23/2024',y:[7.77,7.78,7.72,7.76]},{ x:'04/24/2024',y:[7.88,7.97,7.88,7.95]},{ x:'04/25/2024',y:[7.90,7.90,7.84,7.84]},{ x:'04/26/2024',y:[7.93,7.99,7.93,7.96]},{ x:'04/29/2024',y:[8.00,8.22,8.00,8.18]},{ x:'04/30/2024',y:[8.18,8.20,8.12,8.18]},{ x:'05/02/2024',y:[8.14,8.17,8.11,8.15]},{ x:'05/03/2024',y:[8.23,8.27,8.20,8.21]},{ x:'05/06/2024',y:[8.26,8.36,8.26,8.34]},{ x:'05/07/2024',y:[8.34,8.38,8.31,8.35]},{ x:'05/08/2024',y:[8.33,8.42,8.33,8.39]},{ x:'05/09/2024',y:[8.45,8.48,8.41,8.43]},{ x:'05/10/2024',y:[8.47,8.58,8.46,8.58]},{ x:'05/13/2024',y:[8.58,8.66,8.57,8.60]},{ x:'05/14/2024',y:[8.60,8.84,8.60,8.78]},{ x:'05/15/2024',y:[8.78,8.83,8.73,8.73]},{ x:'05/16/2024',y:[8.80,8.88,8.80,8.86]},{ x:'05/17/2024',y:[8.86,8.87,8.81,8.83]},{ x:'05/20/2024',y:[8.90,8.91,8.88,8.91]},{ x:'05/21/2024',y:[8.83,8.83,8.79,8.81]},{ x:'05/22/2024',y:[8.85,8.98,8.85,8.97]},{ x:'05/23/2024',y:[8.97,9.00,8.94,8.97]},{ x:'05/24/2024',y:[8.92,9.03,8.92,9.02]},{ x:'06/11/2024',y:[9.10,9.10,8.92,8.92]},{ x:'06/12/2024',y:[8.92,8.94,8.87,8.94]},{ x:'06/13/2024',y:[9.13,9.16,9.10,9.16]},{ x:'06/14/2024',y:[9.15,9.23,9.15,9.22]},{ x:'06/17/2024',y:[9.20,9.23,9.18,9.18]},{ x:'06/18/2024',y:[9.17,9.26,9.17,9.26]},{ x:'06/19/2024',y:[9.26,9.50,9.26,9.47]},{ x:'06/20/2024',y:[9.47,9.52,9.47,9.51]},{ x:'06/21/2024',y:[9.46,9.53,9.46,9.50]},{ x:'06/24/2024',y:[9.40,9.40,9.30,9.30]},{ x:'06/25/2024',y:[9.24,9.28,9.22,9.28]},{ x:'06/26/2024',y:[9.32,9.34,9.25,9.29]},{ x:'06/27/2024',y:[9.29,9.29,9.21,9.21]},{ x:'06/28/2024',y:[9.25,9.27,9.23,9.27]},{ x:'07/01/2024',y:[9.34,9.37,9.30,9.31]},{ x:'07/02/2024',y:[9.31,9.31,9.18,9.21]},{ x:'07/03/2024',y:[9.25,9.31,9.25,9.30]},{ x:'07/04/2024',y:[9.37,9.40,9.35,9.35]},{ x:'07/05/2024',y:[9.35,9.35,9.28,9.28]},{ x:'07/12/2024',y:[9.43,9.43,9.18,9.19]},{ x:'07/15/2024',y:[9.22,9.22,9.16,9.17]},{ x:'07/16/2024',y:[9.17,9.22,9.17,9.17]},{ x:'07/17/2024',y:[9.15,9.16,9.05,9.05]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020029 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());