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

How it works...

Area charts are similar to line charts so we would highly recommend reading the recipe, Creating a line chart. An area chart is made up of two axes with data plotted on the x and y axis. The data to be plotted is provided as an instance of XYChart.Series. The axis of the chart can be either javafx.scene.chart.CategoryAxis or javafx.scene.chart.NumberAxis

XYChart.Series contains data encapsulated in instances of XYChart.Data

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