In general, the area chart is used to display the graphically quantitative data. It basically plots the area for the set of points on a XY Plane. It is different from the Line Chart in the sense that Line Chart joins the data points by the straight line segments instead of plotting the area taken by them.
In the following image, An area chart shows the quantity of petrol consumed by two different bikes in every month of a year.
In JavaFX, the class javafx.scene.chart.AreaChart represents the Area Chart. We need to instantiate this class to generate an area chart node.
The class contains a single property which is described in the following table along with its setter method.
There are two constructors in the class.
In the following example, we have shown the comparison between the region-wise sales of a company.