This content has been marked as final. Show 6 replies
At this point, css is the only way to assign custom colors to a data series.1 person found this helpful
Now I believe I saw something somewhere that you can set the style directly in FX? Originally I thought you needed to import a special folder... it's something like .setStyle(styles);? I forgot which class has it though... I'm guessing the NumberLine or one of it's DataAxis classes?
Sweet, thanks soo much!
Edited by: KonradZuse on Jan 7, 2013 6:23 PM
One more thing.. What's the difference between a Class and ID? I never really saw it when doing html and css...
Hy,1 person found this helpful
with the style class you define a styleclass in a css sheet like this:
You can apply this style class to your elements via code or scene builder.
So you are able to change the styleclass of an element for your cases.
if you want to apply a style directly to one specific element you have to define its id in the css
in this case only the element with the id myButton will be styled.
You can see that the one solution with the styleclass is more flexibel and the style can be changed
on more elements at the same time and not depending on their different id's.
Nevertheless you are also able to change the styleId in code per myButton.setID("myButton");