User92 Posted July 24, 2014 Report Share Posted July 24, 2014 Hello, I would like to know if there is a way to control the order of the items in the legend box.Thanks! 1 Quote Link to comment Share on other sites More sharing options...
0 jeisong Posted July 24, 2014 Report Share Posted July 24, 2014 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();// orchart1.getSeries().getItem(0).sendToBack();I hope this helps.Regards,Jeison G Quote Link to comment Share on other sites More sharing options...
Question
User92
Hello,
I would like to know if there is a way to control the order of the items in the legend box.
Thanks!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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.