charts icon indicating copy to clipboard operation
charts copied to clipboard

How to change font for the axis?

Open GeCol1 opened this issue 7 years ago • 2 comments

Hello @HanSolo ,

I try to change the font for the axis but it's not working for the moment (I've tried through css). image

.axis .yaxis {
    -fx-font-family: "Arial";
    -fx-font-size: 18px;
}

I could change the size with the setAutoFontSize(false) and setTickLabelFontSize() methods but I would like to change the font also.

Do you have a sample on how to change it for the axis on a simple XYChart ?

Thanks, Gerald

GeCol1 avatar Jun 22 '18 15:06 GeCol1

As it seems the font is hardcoded to Lato. In the file you mentioned Above. @GeCol1

abhi1992 avatar Nov 04 '22 07:11 abhi1992

The font in my Axis class is not configurable at the moment but that I can change. Keep in mind that I don’t make use of css because most of the controls in this lib make use of canvas which is not directly stylable using css.

HanSolo avatar Nov 04 '22 13:11 HanSolo