Edit this page

In a Single Chart Area

Displaying a drill down chart in a single chart area means that the different hierarchy levels won't be visible at the same time. The chart area will visualize only the currently selected one.

To make the RadChart display your hierarchical data in drill down form you have to use its HierarchicalViewDescriptors collection. To learn how please read the Hierarchical View topic. It explains the basics around the drill down feature of the RadChart and also gives some sampole data definitions. The same definitions are going to be used in the scope of this topic too.

The usage of a single chart area for displaying hierarchical data in a drill down form is the default behavior for the RadChart. So the only thing you have to do is to define the appropriate ChartHierarchyViewDescriptor objects and add the to the HierarchyViewDescriptors collection of the RadChart. Here is an example.

<telerik:RadChart x:Name="radChart">
                    <telerik:ItemMapping DataPointMember="YValue" FieldName="Sales.TotalAmount" />
                    <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name" />
                <telerik:PropertyRelation ParentPropertyName="Sales" />
                        <telerik:GroupingSettings ShouldFlattenSeries="True">
                            <telerik:ChartGroupDescriptor Member="Model" />
                    <telerik:ItemMapping AggregateFunction="Sum"
                                         FieldName="Amount" />
                    <telerik:ItemMapping DataPointMember="XCategory" FieldName="Model" />

Here are snapshots of the result - one for the first hierarchy level and one after clicking on the ToyYoda bar.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article