Plotly Javascript library supports generating various charts. Java Servlet & JSP based web applications can use it to display graphical representations of data.
In this sample project, you will see how to include graphs into a simple Java web application.
For more information, read http://www.digizol.com/2017/07/plotly-graphs-java-tutorial-web_13.html
Plotly is available @ https://plot.ly/