O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a bar chart

Data, when represented in the form of tables, is very hard to understand, but the same, when represented graphically by using charts, is comfortable for the eyes and easy to understand. We have seen a lot of charting libraries for web applications. However, the same support was lacking on the desktop application front. Swing didn't have native support for creating charts and we had to rely on third-party applications such as JFreeChart (http://www.jfree.org/jfreechart/). With JavaFX though, we have native support for creating charts, and we are going to show you how to represent the data in the form of charts using the JavaFX chart components. 

JavaFX supports the following chart types:

  • Bar chart
  • Line chart
  • Pie chart ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required