Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using CSS to change line chart tick mark font

874685Aug 2 2011 — edited Aug 2 2011
I apologize if this has been covered elsewhere, but I can't find any reference to help with this.

I have create a dark-background theme for my CSS and have run into a bit of a blind spot with the CSS. My chart has a dark background, and I can find no way to change the color of the font on the tick marks. I have resorted for now to setting the individual axis objects setTickLabelFill for now, but it would be nice to be able to set this in CSS.

With this, I can change the font size of the axis labels and tick marks, but the font name and color are ignored for the tick marks:

.axis {
-fx-font: 14px "Palatino Linotype";
-fx-text-fill: white;
}

Thank you for your help.
- Jim

Edited by: 871682 on Aug 2, 2011 11:47 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2011
Added on Aug 2 2011
4 comments
321 views