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:'02/23/2023',y:[21.78,21.78,21.48,21.48]},{ x:'02/24/2023',y:[21.35,21.35,21.35,21.35]},{ x:'03/01/2023',y:[21.29,21.71,21.29,21.71]},{ x:'03/02/2023',y:[21.76,21.77,21.74,21.77]},{ x:'03/03/2023',y:[21.72,21.76,21.58,21.66]},{ x:'03/06/2023',y:[21.66,21.67,21.57,21.64]},{ x:'03/07/2023',y:[21.55,21.55,21.47,21.47]},{ x:'03/08/2023',y:[21.20,21.20,21.20,21.20]},{ x:'03/09/2023',y:[21.22,21.27,21.20,21.27]},{ x:'03/10/2023',y:[21.19,21.21,21.05,21.05]},{ x:'03/13/2023',y:[21.25,21.27,21.09,21.20]},{ x:'03/14/2023',y:[21.09,21.09,20.84,20.85]},{ x:'03/15/2023',y:[21.01,21.18,20.99,21.17]},{ x:'03/16/2023',y:[21.06,21.11,20.99,21.00]},{ x:'03/17/2023',y:[21.03,21.20,21.03,21.14]},{ x:'03/20/2023',y:[20.92,20.92,20.92,20.92]},{ x:'03/21/2023',y:[21.05,21.07,21.05,21.07]},{ x:'03/22/2023',y:[21.22,21.22,21.14,21.14]},{ x:'03/23/2023',y:[21.30,21.30,21.28,21.30]},{ x:'03/24/2023',y:[21.38,21.38,21.35,21.35]},{ x:'03/27/2023',y:[21.35,21.35,21.17,21.18]},{ x:'03/28/2023',y:[21.27,21.27,21.24,21.27]},{ x:'03/29/2023',y:[21.23,21.25,21.11,21.21]},{ x:'03/30/2023',y:[21.16,21.20,21.03,21.20]},{ x:'03/31/2023',y:[21.39,21.46,21.38,21.46]},{ x:'04/06/2023',y:[21.78,21.81,21.71,21.77]},{ x:'04/07/2023',y:[21.83,21.90,21.83,21.89]},{ x:'04/10/2023',y:[21.90,21.91,21.76,21.76]},{ x:'04/11/2023',y:[21.75,21.76,21.64,21.65]},{ x:'04/12/2023',y:[21.79,21.88,21.79,21.83]},{ x:'04/13/2023',y:[21.80,21.89,21.80,21.89]},{ x:'04/14/2023',y:[21.86,21.95,21.85,21.95]},{ x:'04/17/2023',y:[21.78,22.00,21.78,21.99]},{ x:'04/18/2023',y:[21.89,21.91,21.84,21.91]},{ x:'04/19/2023',y:[21.87,21.89,21.87,21.89]},{ x:'04/20/2023',y:[21.74,21.74,21.72,21.72]},{ x:'04/21/2023',y:[21.76,21.78,21.39,21.39]},{ x:'04/24/2023',y:[21.20,21.27,21.18,21.19]},{ 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]} ] }], 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());