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

area not displaying for piechart for negative number if i give combination nuber Options · View
vijayakumar
#1 Posted : Monday, May 24, 2010 9:05:56 AM
Rank: Advanced Member

Groups: Registered

Joined: 4/27/2010
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














Baydalka Volodymyr
#2 Posted : Tuesday, May 25, 2010 2:18:37 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 9:08:12 AM
Rank: Advanced Member

Groups: Registered

Joined: 4/27/2010
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 2:31:23 PM
Rank: Developers Team


Groups: Registered, Administrators

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