I can only set same color on a group of BarChart as the code below.
Have some way to set different colors on different bars?
BarChart<Number, String> inspectItemBar = new BarChart<Number, String>(xAxis, yAxis);
inspectItemBar.setId("problemBar");
#inspect #problemBar .chart-bar {
-fx-bar-fill: #ACDA23;
-fx-background-radius: 0;
}
Thany you!
Have some way to set different colors on different bars?
BarChart<Number, String> inspectItemBar = new BarChart<Number, String>(xAxis, yAxis);
inspectItemBar.setId("problemBar");
#inspect #problemBar .chart-bar {
-fx-bar-fill: #ACDA23;
-fx-background-radius: 0;
}
Thany you!