Chartjs-Creating a Doughnut chart using JSON and chart.js

0👍

I see various issues.

In the $.ajax call, in the data attribute you send “{}” string instead of a JSON: {}.

In the getPieChartData() WebMethod you return a list of object but it shouldn’t return a JSON valid string?!.

Read the documentation of http://www.chartjs.org/docs/#doughnut-pie-chart to check if you are using the correct attributes on your graph.

Leave a comment