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/2023',y:[20.95,20.95,20.63,20.65]},{ x:'04/26/2023',y:[20.71,20.87,20.70,20.85]},{ x:'04/27/2023',y:[20.83,20.85,20.79,20.82]},{ x:'04/28/2023',y:[20.93,21.17,20.93,21.15]},{ x:'05/02/2023',y:[21.29,21.30,21.17,21.23]},{ x:'05/03/2023',y:[21.16,21.16,21.09,21.10]},{ x:'05/04/2023',y:[21.26,21.39,21.26,21.36]},{ x:'05/05/2023',y:[21.38,21.39,21.06,21.07]},{ x:'05/08/2023',y:[21.16,21.24,21.09,21.24]},{ x:'05/09/2023',y:[21.18,21.28,21.14,21.24]},{ x:'05/10/2023',y:[20.91,21.02,20.88,21.02]},{ x:'05/11/2023',y:[21.01,21.01,20.95,20.96]},{ x:'05/12/2023',y:[20.94,20.94,20.84,20.88]},{ x:'05/15/2023',y:[20.70,20.70,20.53,20.61]},{ x:'05/16/2023',y:[21.00,21.00,20.78,20.82]},{ x:'05/17/2023',y:[20.60,20.64,20.56,20.60]},{ x:'05/18/2023',y:[20.60,20.64,20.59,20.59]},{ x:'05/19/2023',y:[20.31,20.50,20.30,20.46]},{ x:'05/22/2023',y:[20.40,20.40,20.39,20.39]},{ x:'05/23/2023',y:[20.35,20.38,20.29,20.30]},{ x:'05/24/2023',y:[20.10,20.20,20.10,20.20]},{ x:'05/25/2023',y:[20.01,20.05,19.85,19.86]},{ x:'05/26/2023',y:[19.96,20.07,19.88,20.07]},{ x:'05/29/2023',y:[20.16,20.19,19.99,19.99]},{ x:'05/30/2023',y:[19.89,19.89,19.72,19.72]},{ x:'05/31/2023',y:[20.00,20.00,19.90,19.90]},{ x:'06/01/2023',y:[20.10,20.15,20.08,20.15]},{ x:'06/02/2023',y:[20.07,20.27,20.06,20.26]},{ x:'06/05/2023',y:[20.29,20.29,20.15,20.15]},{ x:'06/06/2023',y:[20.29,20.29,20.09,20.11]},{ x:'06/07/2023',y:[19.87,19.90,19.80,19.86]},{ x:'06/08/2023',y:[19.80,19.80,19.58,19.71]},{ x:'06/09/2023',y:[19.83,19.83,19.83,19.83]},{ x:'06/12/2023',y:[19.83,19.97,19.83,19.97]},{ x:'06/13/2023',y:[19.88,19.90,19.84,19.89]},{ x:'06/14/2023',y:[19.95,19.98,19.94,19.98]},{ x:'06/15/2023',y:[19.96,20.06,19.95,20.06]},{ x:'06/16/2023',y:[20.24,20.35,20.16,20.35]},{ x:'06/19/2023',y:[20.32,20.32,20.31,20.31]},{ x:'06/20/2023',y:[20.31,20.31,20.23,20.27]},{ x:'06/21/2023',y:[20.25,20.25,19.96,19.96]},{ x:'06/26/2023',y:[19.79,19.79,19.47,19.56]},{ x:'06/27/2023',y:[19.50,19.63,19.49,19.63]},{ x:'06/28/2023',y:[19.36,19.51,19.36,19.51]},{ x:'06/29/2023',y:[19.63,19.63,19.49,19.59]},{ x:'06/30/2023',y:[19.69,19.80,19.69,19.76]},{ x:'07/03/2023',y:[19.83,19.98,19.83,19.93]},{ x:'07/04/2023',y:[19.93,20.00,19.93,19.98]},{ x:'07/05/2023',y:[19.96,19.98,19.96,19.98]},{ x:'07/06/2023',y:[19.90,20.01,19.86,19.89]},{ x:'07/07/2023',y:[19.81,19.81,19.77,19.77]},{ x:'07/10/2023',y:[20.03,20.03,19.96,19.96]},{ x:'07/11/2023',y:[20.00,20.09,20.00,20.09]},{ x:'07/12/2023',y:[20.09,20.14,20.07,20.09]},{ x:'07/13/2023',y:[20.09,20.14,20.05,20.05]},{ x:'07/14/2023',y:[20.10,20.15,20.07,20.15]},{ x:'07/17/2023',y:[20.10,20.10,19.91,19.95]},{ x:'07/18/2023',y:[19.89,19.95,19.89,19.95]},{ x:'07/19/2023',y:[19.89,19.89,19.81,19.81]},{ x:'07/20/2023',y:[19.98,19.98,19.85,19.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00783 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());