use of javafx.scene.chart.PieChart.Data in project VocabHunter by VocabHunter.
the class ProgressController method buildChartProgress.
private void buildChartProgress(final ProgressModel model) {
Data done = slice(PROGRESS_SLICE_MARKED, model.markedProperty());
Data remaining = slice(PROGRESS_SLICE_UNMARKED, model.unseenUnfilteredProperty());
chartProgress.setData(FXCollections.observableArrayList(done, remaining));
bindValueLabel(labelValueDone, model.markedProperty());
bindPercentLabel(labelPercentDone, model.markedPercentVisibleProperty());
bindValueLabel(labelValueRemaining, model.unseenUnfilteredProperty());
bindPercentLabel(labelPercentRemaining, model.unseenUnfilteredPercentVisibleProperty());
}
Aggregations