Jump to content
JChartFX Community
  • 0

Items in the legend box


User92

Question

1 answer to this question

Recommended Posts

  • 0

Hello User92,

jChartFX allows you to invert the labels of the series in the LegendBox. In order to use the inverted property, please refer to the code below:

[Javascript]
var lia = new cfx.LegendItemAttributes();

lia = chart1.getLegendBox().getItemAttributes().getItemList(chart1.getSeries());

lia.setInverted(true);

Also, jChartFX provides the BringToFront and SendToBack methods. By utilizing those members, developers may control the order of SeriesAttributes in the chart. This property may be used to determine the original starting position for a selected SeriesAttributes object in the SeriesAttributesCollection. To display the first series to the Front or to the Back, please take a look at the code below:

[Javascript]
chart1.getSeries().getItem(0).bringToFront();
// or
chart1.getSeries().getItem(0).sendToBack();

I hope this helps.

Regards,
Jeison G

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