26. Charts

A chart is a two-dimensional or three-dimensional representation of data. The JavaFX platform provides six different types of chart, two of which also have three-dimensional variants. The chart classes are all nodes, so you can incorporate them anywhere within a scene graph and, of course, you can apply transformations to them and even animate them, if you need to.

In the first part of this chapter, we discuss the six basic chart types in some detail. Two things should immediately strike you as you look at the examples in this chapter. First, it is extremely easy to create a chart: All you have to do is create the data model, create the chart object, and then install the data in the chart; everything else is automatic. Second, even ...

Get JavaFX™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.