-
Bug
-
Resolution: Unresolved
-
P4
-
fx2.1
-
Windows 7 64-bit, Java 1.7.0_02 64-bit, JavaFX 2.1 b12 64-bit
In the article "Styling Charts with CSS" http://docs.oracle.com/javafx/2.0/charts/css-styles.htm, it is indicated in example 8.1 and figure 8-2 that it's possible to change the color of some of the chart's labels by using CSS value such as :
.chart {
-fx-text-fill: red;
}
In the example this applies to the title, legend and horizontal label (and probably the vertical label, though it is not shown in the figure).
However this has no effect on the chart in the end, unlike the examples in the tutorial.
It is still possible to change the title and legend font by using more specific selectors like "chart-title" and "chart-legend-item" though.
It seems impossible to style the vertical and horizontal labels except by using the following selector "chart .label", ie:
.chart .label {
-fx-text-fill: red;
}
This problem should be fixed or the tutorial should be revised to display the current behavior.
.chart {
-fx-text-fill: red;
}
In the example this applies to the title, legend and horizontal label (and probably the vertical label, though it is not shown in the figure).
However this has no effect on the chart in the end, unlike the examples in the tutorial.
It is still possible to change the title and legend font by using more specific selectors like "chart-title" and "chart-legend-item" though.
It seems impossible to style the vertical and horizontal labels except by using the following selector "chart .label", ie:
.chart .label {
-fx-text-fill: red;
}
This problem should be fixed or the tutorial should be revised to display the current behavior.