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

Pie Chart

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mmp
Top achievements
Rank 1
mmp asked on 14 Mar 2010, 10:08 PM
Hi,

I am trying to get a pie chart to work similar to your sales dashboard demo. 
I am using the following sql:
"SELECT SUM(Value) AS [Sum], C.Name FROM (Category AS C INNER JOIN Subcategory AS SC ON C.Id=SC.Category_id) INNER JOIN [Data] AS D ON SC.ID=D.SubCategory_Id WHERE [Year]=@Year GROUP BY C.ID, C.Name ORDER BY C.ID"

For the series property I am using name as the DataLablesColumn and sum as the DataYColumn

However, when i run the report I see the name in both the legend as well as the pie chart section. What property do i need to set to see the sum on the chart and the name on the legend.

Also do you have a video of the pie chart design? The one on telerik tv is for bar charts and I see that pie charts are quite different in implemetation.

Thanks

1 Answer, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 18 Mar 2010, 10:23 AM
Hello mmp,

Currently it is not possible to bind the series item names which are shown in the legend to a data column. The only way to achieve this functionality for a pie chart is to create the series and the items programmatically. Please, check the following thread for a possible solution.

Regards,
Chavdar
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
General Discussions
Asked by
mmp
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Share this question
or