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

shorten label's length on Pie chart Options · View
anakin
#1 Posted : Monday, May 14, 2012 9:55:48 AM
Rank: Newbie

Groups: Registered

Joined: 5/14/2012
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 10:00:30 AM
Rank: Developers Team


Groups: Registered, Administrators

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

Please check the label format API - http://www.artfulbits.com/articles/documentation/aicharts/android/reference/com/artfulbits/aiCharts/Base/ChartPointAttributes.html#setLabelFormat%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 1:57:13 PM
Rank: Newbie

Groups: Registered

Joined: 5/14/2012
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 1:57:53 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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.