-
Bug
-
Resolution: Fixed
-
P4
-
None
-
Mac OS X, JavaFX 2.1
It seems the documentation for styling charts contains an error. The documentation can be found here: http://docs.oracle.com/javafx/2/charts/css-styles.htm
Indeed, the code example for figure 8-2 says that in order to change the text color of both title and labels you have to override the .chart CSS class but this does not work. In order to change that color, you have to override the .chart-title CSS class for the title, and .axis-label for the labels like this:
.chart-title {
-fx-text-fill: white;
}
.axis-title {
-fx-text-fill: white;
}
I'm sorry if I didn't report that bug in the right place. I have previously posted a message of the Oracle forum: https://forums.oracle.com/forums/thread.jspa?threadID=2386077&tstart=0
Indeed, the code example for figure 8-2 says that in order to change the text color of both title and labels you have to override the .chart CSS class but this does not work. In order to change that color, you have to override the .chart-title CSS class for the title, and .axis-label for the labels like this:
.chart-title {
-fx-text-fill: white;
}
.axis-title {
-fx-text-fill: white;
}
I'm sorry if I didn't report that bug in the right place. I have previously posted a message of the Oracle forum: https://forums.oracle.com/forums/thread.jspa?threadID=2386077&tstart=0