adding the WebAPI controller to get the chart data