added data to the chart, the problem now is that it is  asynchronous. returning the data before that array is full