1👍
Instead of returning JSON data, try to write the data and also tell the browser about data by sending header information like:
HttpContext.Current.Response.ContentType = "application/json";
HttpContext.Current.Response.AddHeader("content-encoding", "utf8");
HttpContext.Current.Response.Write(returnData);
0👍
Try to delete ‘static’ keyword from method signature.
- Chartjs-Manipulate objects from inside a function
- Chartjs-Calling a function for fontSize in Doughnut Chart (typescript)
Source:stackexchange.com