This is a migrated thread and some comments may be shown as answers.

Pie Chart Problem

1 Answer 20 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
mhokano
Top achievements
Rank 1
mhokano asked on 23 Jun 2010, 10:08 PM
Hello,

I have a problem. I need to show a Pie chart populated with databound, but I need to show informations like in this example:

Results
Cities | Population
City1 |50
City2 |10
City3 |40

In the chart Legend:

.City1
.City2
.City3

In each pie (label)
.50
.10
.40

It must be simple, but I dont know how to configure the control to show this. I always have the same values in legend and label.

Thanks

Marcelo



City1 |1000

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 28 Jun 2010, 09:54 AM
Hi mhokano,

You can find a similar task discussed in this blog post. You will need to make a small change -- the values in the legend are taken from the ChartSeriesItem.Name property, so you have to update the item.Name property in the ItemDataBound event handler.

Kind regards,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
mhokano
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or