Data Binding RadChart to a Generic List

2 posts, 0 answers
  1. Paul
    Paul avatar
    1 posts
    Member since:
    Dec 2011

    Posted 17 Dec 2011 Link to this post

    I am using MVVM and RadChart

    <chart:RadChart x:Name="RadChart1" ItemsSource="{Binding Data}" >
    <charting:BarSeriesDefinition />

    My Data is List of Products that has inside int and string.

    How I can make the int be Y Axis and string X Axis value?


    Found a solution , thanks .

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 19 Dec 2011 Link to this post

    Hi Paul,

    You cannot do that with DefaultSeriesDefinition (automatic series mapping) -- you need to set a series mapping manually and define its item mappings for YValue / Category. You can find more information here.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top