Jump to content
JChartFX Community
  • 0

CSS vs API


FP2006

Question

I know that the CSS is applied to the chart after the API values are set.

 

If we set a value for something like a series color via the API, then we apply a stylesheet that DOES NOT have that property in it, does the setting from the API remain or is it cleared out to default values?

 

 

  • Like 1
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Actually, when using CSS, all API calls that relate to colors, fonts and line attributes are ignored and should be set using CSS.

 

There are only a couple of situations where we do not have a boolean property (e.g. border around point labels is one of these corner cases) so you need to use a setColor call and even there we will receive the "intent" of using borders when you use setColor API but the actual color will be used from CSS.

 

JuanC

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...