[英]How to change color of chart?
如何更改特定條形的條形圖顏色,以及如何將每個裸色更改為相同顏色?
XYChart.Series<String, Integer> exPhil = new XYChart.Series<>();
exPhil.setName("Examen philosophicum for naturvitenskap og teknologi");
exPhil.getData().add(new XYChart.Data<>("A", 70));
exPhil.getData().add(new XYChart.Data<>("B", 20));
exPhil.getData().add(new XYChart.Data<>("C", 40));
exPhil.getData().add(new XYChart.Data<>("D", 10));
exPhil.getData().add(new XYChart.Data<>("E", 5));
exPhil.getData().add(new XYChart.Data<>("F", 5));
barChart.getData().add(exPhil);
barChart.setLegendVisible(true);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.