Empty chartData array between calls for data