PhilHannent Posted November 19, 2012 Report Share Posted November 19, 2012 I am trying to remove the KeyLabels from showing in the Legend box. I tried following the documentation however its not working: LegendItemAttributes lia1 = new LegendItemAttributes(); lai1.Visible = false; chart1.LegendBox.ItemAttributes[chart1.KeyLabels] = lia1; http://www.jchartfx.com/api/LegendItemAttributes/OrderIndex Could you provide an example of how it is meant to be used? Quote Link to comment Share on other sites More sharing options...
0 angelr Posted November 19, 2012 Report Share Posted November 19, 2012 The snippetin the API Doc is outdated. We are going to fix it. Thanks for reporting. In themeantime, please try: var lia1 = new cfx.LegendItemAttributes();lia1.setVisible(false); chart1.getLegendBox().getItemAttributes().setItem(chart1.getSeries(), 1, lia1); Quote Link to comment Share on other sites More sharing options...
0 PhilHannent Posted November 20, 2012 Author Report Share Posted November 20, 2012 Hi, That didn't help. It just produced a blank image. I've uploaded my example with your lines commented out: http://www.hannent.co.uk/jchartfx/test6.html Then when I add them in it breaks: http://www.hannent.co.uk/jchartfx/test6-broken.html Any suggestion? Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted December 4, 2012 Report Share Posted December 4, 2012 This issue has been fixed and new bits should be released in a couple of days Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Question
PhilHannent
I am trying to remove the KeyLabels from showing in the Legend box. I tried following the documentation however its not working:
http://www.jchartfx.com/api/LegendItemAttributes/OrderIndex
Could you provide an example of how it is meant to be used?
Link to comment
Share on other sites
3 answers 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.