import javafx.scene.chart.PieChart; ... @FXML PieChart pieChart1; ... /* set text */ pieChart1.setTitle( "This is a chart" ); /* add data */ ObservableListOutput:series = FXCollections.observableArrayList(); series.add( new PieChart.Data( "Q1", 5 ) ); series.add( new PieChart.Data( "Q2", 5.5 ) ); series.add( new PieChart.Data( "Q3", 8 ) ); series.add( new PieChart.Data( "Q4", 3 ) ); pieChart1.setData( series );
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Wednesday, March 21, 2018
JAVAFX - How fill and work with PieChart (graph)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment