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

Trouble Using Pie Chart

1 Answer 25 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
PJ Rodriguez
Top achievements
Rank 1
PJ Rodriguez asked on 03 Jan 2013, 10:33 PM
I am migrating my data visualization components from Infragistics to Telerik.

I'm having a bit of trouble using Telerik's pie chart. I have the chart databound to a sqldatasource that returns the following table as a result:
Budget Fund
 $  15,264,742.00 General Operating Funds
 $    5,337,148.00 Special Revenue Funds
 $        833,073.00 Debt Service Funds
 $  11,789,840.00 Capital Investment Funds
 $  10,818,935.00 Enterprise Funds
 $    4,691,914.00 Internal Service Funds
 $        201,776.00 Other Funds

The challenge is this, I want the Budget values to show up on the actual pie and on the legend, I want the Fund names to show up. What Telerik does by default is have the Budget values show up on the pie and on the legend block, it just shows the word Budget. I don't think that's very helpful at all for visualization. The end user needs to see the number and they need to be able to see what fund the actual number belongs to.

In Infragistics, this was done by default. Telerik seems to have a different mechanism in plotting this out. Any help is certainly appreciated.

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 08 Jan 2013, 04:39 PM
Hi PJ Rodriguez,

I have attached a sample project, demonstrating the functionality you need. Basically, I used the BeforeLayout to change pie slice labels to the datapoint values.

I hope this helps.
 
Regards,
Petar Kirov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
PJ Rodriguez
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or