Chartjs-Providing server side data for Chart.js charts

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.

Leave a comment