Is there a way to change the font color of both X and Y axes?
In my search through the css reference for fonts, I only found properties like font-size, font-style, and font-weight.
font-size, font-style and font-weight
I attempted to use -fx-font-color but it had no effect.
Any assistance would be greatly appreciated.
Edit:
This is what I have tried:
Set<Node> axisNode = lineChart.lookupAll(".axis");
for(final Node axis : axisNode){
axis.setStyle("-fx-minor-tick-visible:false;");
axis.setStyle("-fx-font-size: 8;")
axis.setStyle("-fx-font-color: red;");
}
I am looking for a solution that involves using only
color:#008800;