Java FX LineChart basics

From MyWiki
Revision as of 08:01, 15 July 2015 by George2 (Talk | contribs)

Jump to: navigation, search

Creating a Line Chart

To create a line chart, at a minimum, you must define two axes, create the LineChart object by instantiating the LineChart class, create one or more series of data by using the XYChart.Series class, and assign the data to the chart. Example 32-1 implements these tasks.

Example 32-1 Simple Line Chart