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:'01/12/2023',y:[20.87,20.87,20.77,20.79]},{ x:'01/13/2023',y:[20.99,20.99,20.93,20.93]},{ x:'01/16/2023',y:[21.09,21.45,21.09,21.43]},{ x:'01/17/2023',y:[21.30,21.30,21.16,21.16]},{ x:'01/30/2023',y:[22.00,22.00,21.72,21.72]},{ x:'01/31/2023',y:[21.50,21.50,21.46,21.49]},{ x:'02/01/2023',y:[21.57,21.64,21.54,21.62]},{ x:'02/02/2023',y:[21.72,21.76,21.62,21.74]},{ x:'02/03/2023',y:[21.74,21.74,21.20,21.20]},{ x:'02/06/2023',y:[21.42,21.43,21.23,21.32]},{ x:'02/07/2023',y:[21.36,21.43,21.36,21.43]},{ x:'02/08/2023',y:[21.43,21.45,21.41,21.41]},{ x:'02/09/2023',y:[21.29,21.47,21.29,21.47]},{ x:'02/10/2023',y:[21.55,21.57,21.36,21.40]},{ x:'02/13/2023',y:[21.61,21.61,21.58,21.58]},{ x:'02/14/2023',y:[21.66,21.66,21.61,21.61]},{ x:'02/15/2023',y:[21.67,21.70,21.66,21.66]},{ x:'02/16/2023',y:[21.63,21.76,21.63,21.76]},{ x:'02/17/2023',y:[21.33,21.34,21.18,21.18]},{ x:'02/20/2023',y:[21.21,21.36,21.15,21.36]},{ x:'02/21/2023',y:[21.52,21.65,21.52,21.60]},{ x:'02/22/2023',y:[21.65,21.70,21.61,21.61]},{ 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]} ] }], 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());