Chartjs-ChartJS line chart or bar graph from a Java program

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.

Leave a comment