How to use the DataSeries with Pie Charts...

2 posts, 0 answers
  1. mark baer
    mark baer avatar
    142 posts
    Member since:
    Sep 2009

    Posted 01 Jun 2010 Link to this post

    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
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 03 Jun 2010 Link to this post

    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.
Back to Top