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.
- Chartjs-How to wrangle JSON data into arrays of unknown name
- Chartjs-Dynamic line styling in chartjs
Source:stackexchange.com