Data is obtained from the backend for the chart to be drawn
Data obtaining bug fixed