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

Displaying the labels outside the piechart Options · View
ashokbb
#1 Posted : Friday, March 11, 2011 4:31:14 PM
Rank: Newbie

Groups: Registered

Joined: 3/10/2011
Posts: 2
Location: India
Hi,

How to display the labels like % of each slice outside the pie chart.

Ex: If pie contains 4 slices i need to display the % of each slice outise the pie chart as 25%,25%,25%,25%


Thanks

Ashok
Baydalka Volodymyr
#2 Posted : Friday, March 11, 2011 4:41:41 PM
Rank: Developers Team


Groups: Registered, Administrators

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

Please, check following code

Code:
ChartSeries series = new ChartSeries(ChartTypes.Pie);

series.setAttribute(ChartPieType.LABEL_STYLE, ChartPieType.LABEL_OUTSIDE);
series.setShowLabel(Boolean.TRUE);

for(int i = 0; i < 4; i ++)
{
    ChartPoint point = series.getPoints().addXY(i, 25);
    point.setLabel("25%");
}


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-2016 ArtfulBits. All rights reserved.