Difference between revisions of "Java FX LineChart basics"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
 +
Reference : https://docs.oracle.com/javase/8/javafx/user-interface-tutorial/line-chart.htm#CIHGBCFI<br>
 
'''Creating a Line Chart'''
 
'''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.<br><br>
 
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.<br><br>
 
Example 32-1 Simple Line Chart<br>
 
Example 32-1 Simple Line Chart<br>

Revision as of 08:02, 15 July 2015

Reference : https://docs.oracle.com/javase/8/javafx/user-interface-tutorial/line-chart.htm#CIHGBCFI
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