I am building upon the existing Telerik.Windows.Examples.Chart.Gallery.StackedBar example and want to specify the actual x values in the series. In the example, the ItemSource is bound to a List<int[]>, instead of business objects.
I specify the X series like so:
I specify the X series like so:
SeriesMapping smX = new SeriesMapping();
smX.CollectionIndex = 0;
ItemMapping imX = new ItemMapping();
imX.DataPointMember = DataPointMember.XValue;
smX.ItemMappings.Add(imX);
The collection that gets bound to the ItemSource of the RadChart has at index 0, the x values for each index.
When I run this it gives an exception Invalid Property or field - 'Value' for type: int
I notice in the example, they use default x values and cleverly don't show you how to set them explicitly.
The only place they set XValues explicitly are in charts where the Items are bound to business object properties.
Can I specify X values while still using a List of arrays for the ItemSource values?