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

Data Binding RadChart to a Generic List

1 Answer 90 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 17 Dec 2011, 03:33 PM

I am using MVVM and RadChart

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

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?

Thanks.


Found a solution , thanks .

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 19 Dec 2011, 10:08 AM
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,
Giuseppe
the Telerik team

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

Tags
Chart
Asked by
Paul
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or