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/09/2024',y:[21.63,21.81,21.63,21.81]},{ x:'04/10/2024',y:[21.75,21.89,21.75,21.87]},{ x:'04/11/2024',y:[21.79,21.86,21.78,21.86]},{ x:'04/12/2024',y:[21.82,21.82,21.82,21.82]},{ x:'04/15/2024',y:[21.57,21.59,21.50,21.59]},{ x:'04/16/2024',y:[21.46,21.46,21.32,21.36]},{ x:'04/17/2024',y:[21.30,21.30,21.28,21.28]},{ x:'04/18/2024',y:[21.27,21.30,21.27,21.30]},{ x:'04/19/2024',y:[21.14,21.14,20.85,21.07]},{ x:'04/22/2024',y:[21.07,21.22,21.07,21.20]},{ x:'04/23/2024',y:[21.42,21.44,21.42,21.44]},{ x:'04/24/2024',y:[21.64,21.68,21.64,21.68]},{ x:'04/25/2024',y:[21.68,21.74,21.60,21.60]},{ x:'04/26/2024',y:[21.88,21.92,21.88,21.90]},{ x:'04/29/2024',y:[22.00,22.07,21.96,22.06]},{ x:'04/30/2024',y:[22.14,22.17,22.14,22.17]},{ x:'05/02/2024',y:[22.15,22.20,22.12,22.20]},{ x:'05/03/2024',y:[22.32,22.32,22.22,22.25]},{ x:'05/06/2024',y:[22.31,22.34,22.30,22.30]},{ x:'05/07/2024',y:[22.32,22.32,22.32,22.32]},{ x:'05/08/2024',y:[22.26,22.26,22.19,22.19]},{ x:'05/09/2024',y:[22.20,22.34,22.20,22.31]},{ x:'05/10/2024',y:[22.39,22.39,22.34,22.38]},{ x:'05/13/2024',y:[22.38,22.50,22.38,22.46]},{ x:'05/14/2024',y:[22.50,22.54,22.50,22.54]},{ x:'05/15/2024',y:[22.60,22.62,22.60,22.62]},{ x:'05/16/2024',y:[22.62,22.70,22.61,22.68]},{ x:'05/17/2024',y:[22.73,22.84,22.73,22.81]},{ x:'05/20/2024',y:[22.85,23.00,22.85,23.00]},{ x:'05/21/2024',y:[22.95,22.95,22.83,22.83]},{ x:'05/22/2024',y:[22.85,22.89,22.84,22.87]},{ x:'05/23/2024',y:[22.76,22.83,22.75,22.80]},{ x:'05/24/2024',y:[22.65,22.65,22.62,22.62]},{ x:'06/11/2024',y:[22.34,22.35,22.34,22.35]},{ x:'06/12/2024',y:[22.26,22.26,22.24,22.24]},{ x:'06/13/2024',y:[22.39,22.40,22.39,22.40]},{ x:'06/14/2024',y:[22.45,22.47,22.45,22.45]},{ x:'06/17/2024',y:[22.48,22.50,22.48,22.50]},{ x:'06/18/2024',y:[22.50,22.54,22.50,22.54]},{ x:'06/19/2024',y:[22.68,22.87,22.68,22.87]},{ x:'06/20/2024',y:[22.94,22.94,22.92,22.94]},{ x:'06/21/2024',y:[22.90,22.90,22.10,22.80]},{ x:'06/24/2024',y:[22.62,22.62,22.60,22.60]},{ x:'06/25/2024',y:[22.64,22.80,22.64,22.74]},{ x:'06/26/2024',y:[22.78,22.79,22.75,22.75]},{ x:'06/27/2024',y:[22.75,22.78,22.68,22.78]},{ x:'06/28/2024',y:[22.80,22.86,22.80,22.86]},{ x:'07/01/2024',y:[22.84,22.84,22.82,22.83]},{ x:'07/02/2024',y:[22.89,22.89,22.76,22.76]},{ x:'07/03/2024',y:[22.79,22.96,22.79,22.96]},{ x:'07/04/2024',y:[23.08,23.17,23.08,23.17]},{ x:'07/05/2024',y:[23.17,23.17,23.07,23.07]},{ x:'07/12/2024',y:[23.59,23.59,23.59,23.59]},{ x:'07/15/2024',y:[23.65,23.65,23.64,23.65]},{ x:'07/16/2024',y:[23.57,23.57,23.51,23.51]},{ x:'07/17/2024',y:[23.51,23.51,23.38,23.38]},{ x:'07/18/2024',y:[23.34,23.35,23.33,23.33]},{ x:'07/19/2024',y:[23.33,23.33,23.20,23.20]},{ x:'07/22/2024',y:[22.95,23.03,22.95,23.01]},{ x:'07/23/2024',y:[23.08,23.13,23.08,23.08]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00736 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());