Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Data Series from columns

Not answered Data Series from columns

Feed from this thread
  • Posted on May 25, 2009 (permalink)

    I have the following linq code...
    var CVDOverviewData = from cvdo in pieData.CVDOverviews  
                                      select new  
                                      {  
                                        OverTwentyfive = cvdo.OverTwentyfive,  
                                        OverTwenty = cvdo.OverTwenty,  
                                        OverFifteen = cvdo.OverFifteen,  
                                        OverTen = cvdo.OverTen,  
                                        LessTen = cvdo.LessTen  
                                      }; 

    the result is a sinlge row with a column for each range (over25, over20, over15 ...)

    How so I get these values into a pie chart?

    Sorry if this is a real newbie question.

    Cheers in advance.

    Reply

  • Posted on May 27, 2009 (permalink)

    Anyone?

    Reply

  • Q1 Webinar Week
  • Ves Ves admin's avatar

    Posted on May 28, 2009 (permalink)

    Hi Kevin,

    Unfortunately, this scenario is not supported by RadChart for the moment. You can find more details about databinding RadChart in this help topic. You can also check this example.

    Generally, RadChart will create an item for a given column/property for each record / instance, but it will not loop through an object's properties. In this case you can use a code like this:

    RadChart1.ItemsSource = new double[] {  
                            CVDOverviewData.OverTwentyfive,   
                            CVDOverviewData.OverTwenty,  
                            CVDOverviewData.OverFifteen,  
                            ..............  
                            };  


    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Data Series from columns
Related resources for "Data Series from columns"

WPF Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]