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
vijayakumar  
#1 Posted : Monday, May 24, 2010 11:05:56 AM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

can any body tell how to display area for negative number in pie chart if i give combination of negative number and positive number ?



Thanks in Advance














Edited by user Monday, May 24, 2010 3:14:41 PM(UTC)  | Reason: Not specified

Baydalka Volodymyr  
#2 Posted : Tuesday, May 25, 2010 4:18:37 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Try to use positive values value when you set the Y value of point (via Math.abs()).

Example :
Code:

double[] data = new double[]{ ... };

for(int i = 0; i < data.length; i++)
{
   series.getPoints().addXY(i, Math.abs(data[i]));
}


Best regards,
Volodymyr Baydalka
Andriod development and support team
vijayakumar  
#3 Posted : Wednesday, May 26, 2010 11:08:12 AM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

Hi Baydalka Volodymyr,
Thanks for your reply if i want to display value in label for negative no how can i display


Baydalka Volodymyr  
#4 Posted : Friday, May 28, 2010 4:31:23 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Try to set labels manually

Code:
double[] data = new double[]{ ... };

for(int i = 0; i < data.length; i++)
{
   series.getPoints().addXY(i, Math.abs(data[i]));
   series.getPoints().get(i).setLabel(Double.toString(data[i]));
}


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.