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! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
anakin  
#1 Posted : Monday, May 14, 2012 11:55:48 AM(UTC)
anakin
Rank: Newbie

Groups: Registered
Joined: 5/14/2012(UTC)
Posts: 2

Hi,

How can I shorten the label on pie chart (ellipsize it when the name is too long) ?

Also, I want display both name and percentage, but on two lines, first line is name (which is ellipsize) and second line is percentage.

Thank you
Baydalka Volodymyr  
#2 Posted : Monday, May 14, 2012 12:00:30 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

Please check the label format API - http://www.artfulbits.co...at%28java.lang.String%29

Example: chartSeries.setLabelFormat("{LABEL} {PERCENT0,#.##}");

Regarding ellipsize - there is no such feature, and you need to ellipsize it manually before set label text.

Best regards,
Volodymyr Baydalka
Andriod development and support team
anakin  
#3 Posted : Monday, May 14, 2012 3:57:13 PM(UTC)
anakin
Rank: Newbie

Groups: Registered
Joined: 5/14/2012(UTC)
Posts: 2

Sorry, but I still don't know how to display it on 2 lines.

I set "\n" in the format string but it does not work
Baydalka Volodymyr  
#4 Posted : Monday, May 14, 2012 3:57:53 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

Labels doesn't support wrapping yet.

Best regards,
Volodymyr Baydalka
Andriod development and support team
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-2017 ArtfulBits. All rights reserved.