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
trantoan  
#1 Posted : Wednesday, April 24, 2013 4:01:31 PM(UTC)
trantoan
Rank: Newbie

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 2
Location: Vietnam

Hi author of this chart :)

I have problem with the chart bought from you.
In my code, I need to set label for my pie chart.

Then I did something like this.

Quote:
myPie.setLabelFormat("{LABEL}{\n}({PERCENT0,#.#}%)");


Then it throws me a bunch of error, like

Quote:
04-24 17:39:09.552: E/AndroidRuntime(12362): FATAL EXCEPTION: main
04-24 17:39:09.552: E/AndroidRuntime(12362): java.lang.NullPointerException
04-24 17:39:09.552: E/AndroidRuntime(12362): at com.artfulbits.aiCharts.Base.ChartStringFormat.toString(ChartStringFormat.java:212)


I try to search on
http://www.artfulbits.com/articles/documentation/aicharts/android/reference/com/artfulbits/aiCharts/Base/package-summary.html
and I can NOT find that ChartStringFormat class in document.

Can you help me with this ? I need document about your supported String format. What I want to do in my code was adding a new line between 2 parts of label.

Thank you.
Baydalka Volodymyr  
#2 Posted : Wednesday, April 24, 2013 4:56:48 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

ChartStringFormat is inner class, you shouldn't try to get access to it. You may check documentation of setLabelFormat method - http://www.artfulbits.com/articles/documentation/aicharts/android/reference/com/artfulbits/aiCharts/Base/ChartPointAttributes.html#setLabelFormat%28java.lang.String%29

Best regards,
Volodymyr Baydalka
Andriod development and support team
trantoan  
#3 Posted : Thursday, April 25, 2013 3:01:15 PM(UTC)
trantoan
Rank: Newbie

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 2
Location: Vietnam

Thank you for your quick reply.

What I do hope is to add new line character between these labels.

For example:
A piece of my pie chart currently displays:
Quote:
Daily Cost 30.45%


What I want to do is formatting it with a new line character.
Quote:
Daily Cost
30.45%


Can your chart support this ?

Thanks and regards.

Edited by user Friday, April 26, 2013 12:52:45 PM(UTC)  | Reason: Not specified

Baydalka Volodymyr  
#4 Posted : Thursday, April 25, 2013 3:03:33 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Multi-line labels not supported to current release.

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.