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

pie Chart Color,,Question again ^^ Options · View
EunHee
#1 Posted : Friday, July 15, 2011 8:37:25 AM
Rank: Newbie

Groups: Registered

Joined: 7/8/2011
Posts: 2
Location: south korea
Confused Hi ^^
Java source in the way you talk to me, the source added.
However, the application should run.



series.getPoints (). get (0). setBackColor(Color.RED);



Gonna add this part right?
Please explain by example,, ^^
Baydalka Volodymyr
#2 Posted : Tuesday, July 19, 2011 11:38:30 AM
Rank: Developers Team


Groups: Registered, Administrators

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

Example,
Code:

int[] colors = {Color.RED, Color.GREEN, Color.BLUE};
int[] values = {10, 50, 40};
ChartSeries chartSeries = new ChartSeries(ChartTypes.Pie);

for(int i = 0; i < values.length; i ++)
{
  ChartPoint pt = chartSeries.getPoints().addXY(i, values[u]);
  pt.setBackColor(new Integer(colors[i]));
}



Best regards,
Volodymyr Baydalka
Andriod development and support team
tecnocast2
#3 Posted : Thursday, December 01, 2011 4:21:03 PM
Rank: Newbie

Groups: Registered

Joined: 12/1/2011
Posts: 4
Location: Berlin
Thank you...=)
bvut I still have questions.

Can I make the style of this label into bold or italic?

and also how I change the color from "show label" on ai:series?=)
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-2016 ArtfulBits. All rights reserved.