Hi Scott,
The following code snippet demonstrates how to create StackedBar chart without the need of Nested Collections:
The chart is bound using a list of business objects. List has one element (that means you'll have one stacked bar). In order to map to such kind of business objects, you have to create a new instance of
SeriesMapping. For more information please take a look at our
documentation. Each SeriesMapping has ItemMapping property. For each
ItemMappings the following properties are set -
DataPointMember and
FieldName which specifies from where the data should be taken. To be able to show custom labels for Axis X tickpoints - chart uses
Categories. In above XAML each XCategory is mapped to Name property of the class Company.
Kind regards,
Evgenia
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