Data, when represented in the form of tables, is very hard to understand, but when data is represented graphically by using charts, it 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
- Scatter chart
- Area chart
- Bubble chart
In the next few recipes, we will cover the construction of each chart type. The segregation...