Jump to content
JChartFX Community
  • 0

Axis label size


iris111qiji

Question

Hi,

 

I'm trying to make the size of the Axis label font bigger , because they are too small to see.  but it does not work in neither of these two ways:

 

1. change  .jchartfx .AxisText   {font-size} in jchartfx.css

2. use chart1.getAxisX().setFont("14px Arial");

 

Would you please help me solve this problem?  Thank you very much.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

To set the AxisX label font size in code using the API, please use:

var axisX = chart1.getAxisX();
axisX.setFont("14px Arial");

To set the AxisX label font size using css styles:

.jchartfx .AxisX_Text {
    font-family: Arial;
    font-size: 12pt;

I just tested adding the font style in a local copy of a jchartfx.css file and it worked as expected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...