下面列出了javafx.scene.chart.PieChart#setClockwise ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public PieChartSample() {
ObservableList<PieChart.Data> pieChartData = FXCollections.observableArrayList(
new PieChart.Data("Sun", 20),
new PieChart.Data("IBM", 12),
new PieChart.Data("HP", 25),
new PieChart.Data("Dell", 22),
new PieChart.Data("Apple", 30)
);
PieChart chart = new PieChart(pieChartData);
chart.setClockwise(false);
getChildren().add(chart);
}
public PieChartSample() {
ObservableList<PieChart.Data> pieChartData = FXCollections.observableArrayList(
new PieChart.Data("Sun", 20),
new PieChart.Data("IBM", 12),
new PieChart.Data("HP", 25),
new PieChart.Data("Dell", 22),
new PieChart.Data("Apple", 30)
);
PieChart chart = new PieChart(pieChartData);
chart.setClockwise(false);
getChildren().add(chart);
}