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/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]},{ x:'07/26/2024',y:[22.83,22.95,22.83,22.95]},{ x:'07/29/2024',y:[22.99,23.04,22.99,23.04]},{ x:'07/30/2024',y:[23.01,23.01,22.79,22.80]},{ x:'07/31/2024',y:[22.80,23.03,22.72,23.03]},{ x:'08/01/2024',y:[23.13,23.16,23.03,23.03]},{ x:'08/02/2024',y:[22.81,23.30,22.68,22.68]},{ x:'08/05/2024',y:[22.27,22.27,21.77,21.77]},{ x:'08/06/2024',y:[22.01,22.19,22.01,22.19]},{ x:'08/07/2024',y:[22.29,22.30,22.17,22.17]},{ x:'08/08/2024',y:[22.22,22.46,22.22,22.46]},{ x:'08/09/2024',y:[22.63,22.64,22.63,22.64]},{ x:'08/12/2024',y:[22.72,22.72,22.71,22.71]} ] }], 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());