Difference between revisions of "Java FX LineChart basics"

From MyWiki
Jump to: navigation, search
(Created page with "'''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 mo...")
(No difference)

Revision as of 08:01, 15 July 2015

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