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

How to use the DataSeries with Pie Charts...

1 Answer 104 Views
Chart
This is a migrated thread and some comments may be shown as answers.
mark baer
Top achievements
Rank 1
mark baer asked on 02 Jun 2010, 01:14 AM
I know this should be simple, but I am trying to build a demo of your piechart control and I'm having difficulty with your example...In your "First Look", you use a "Chart Area", but in VS, when I drag a "chart" over from the toolbox, I get a "RadChart"...It does not have a radchart.DataSeries like your FirstLook has...Basically, I want to get a list of "SalesData" objects back from my service.  Simple Entity...SalesData.Category(string) and SalesData.Amount(double)...Then take this list and bind it to the piechart and have the "Categories" show up in the Legend...I'm trying to use your sample code, but again, it uses "ChartArea" object instead of "RadChart"...Am I dragging the wrong object over from the toolbox?  I should be using SL4 Telerik Controls...Version:  2010.1.422.1040

thanks

mark

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 03 Jun 2010, 09:51 AM
Hello mark baer,

You just need to drop a single RadChart instance without worrying about the ChartAreas and other details. The approach used in the first look example is recommended for sophisticated scenarios when users need to have their own custom chart layout. I would recommend you to have a look at the gallery example demonstrating a simple pie chart. After that you can review the attached example demonstrating the requested scenario.

Please refer to the online documentation for more information about data binding and and other topics related to the chart control.

And also when you need the assistance of the support team, please, open support threads using your customer account. This will speed up the response time for your questions.

Hope this will help.

Sincerely yours,
Velin
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
Asked by
mark baer
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or