Adds data for the chart.