0๐
@Vinod your Servlet code is wrong. Why are you calling doGet() method inside doPost() ?
And the content type returned should be application/json not text/html.
Define a PrintWriter & write the data in the format your canvas chart expects. Typically as a key value pair.
- Chartjs-How to pass a array from node to .js file (pugJs)
- Chartjs-How to draw pile/stacked bar chart?
Source:stackexchange.com