whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

Customize legend Options · View
arnouf
#1 Posted : Friday, October 08, 2010 6:05:24 PM
Rank: Newbie

Groups: Registered

Joined: 9/24/2010
Posts: 9
Location: mougins
My chart has 3 three series and display in the legend all series.
I need to display only 2 of them. is it possible ? I found a chartlegend object and chartLegendItem but apparently only the lib can manipulate the legend object to add or remove object.


Thanks for your support.
Baydalka Volodymyr
#2 Posted : Friday, October 08, 2010 6:16:53 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Try use ChartSeries.setLegend method with unused legend name (like "_stublegend")

Best regards,
Volodymyr Baydalka
Andriod development and support team
arnouf
#3 Posted : Friday, October 08, 2010 6:20:52 PM
Rank: Newbie

Groups: Registered

Joined: 9/24/2010
Posts: 9
Location: mougins
Thanks. I'll try this. BR
arnouf
#4 Posted : Monday, October 11, 2010 4:12:20 PM
Rank: Newbie

Groups: Registered

Joined: 9/24/2010
Posts: 9
Location: mougins
Baydalka Volodymyr wrote:
Hi,

Try use ChartSeries.setLegend method with unused legend name (like "_stublegend")

Best regards,

Great it works. Thank you.
It works because there is _ or it's the complete chain _stub... ?
Baydalka Volodymyr
#5 Posted : Monday, October 11, 2010 4:21:43 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

This works because legend shows series only if legend's name equals to ChartSeries.getLegend value (or if it's first legend and series.getLegend value is null). If legend's name isn't equal to ChartSeries.getLegend(), legend doesn't show this series.

Best regards,
Volodymyr Baydalka
Andriod development and support team
arnouf
#6 Posted : Monday, October 11, 2010 4:43:02 PM
Rank: Newbie

Groups: Registered

Joined: 9/24/2010
Posts: 9
Location: mougins
Baydalka Volodymyr wrote:
Hi,

This works because legend shows series only if legend's name equals to ChartSeries.getLegend value (or if it's first legend and series.getLegend value is null). If legend's name isn't equal to ChartSeries.getLegend(), legend doesn't show this series.

Best regards,

Thanks for this detailed answer.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.