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

drilldown option for horizontal bar chart

2 Answers 84 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ruth
Top achievements
Rank 1
Ruth asked on 20 Sep 2013, 11:29 AM
Hi,

Is it possible to have a drill down option for  horizontal bar chart in WPF ?

If yes please provide me the sample code.

Thanks,
Ramya

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Kirov
Telerik team
answered on 25 Sep 2013, 08:27 PM
Hi Ruth,

I have attached a sample project that demonstrates how you can achieve this using RadCartesianChart (which is part of RadChartView). The project includes a generic view model class, which can be used as a base for implementing drill down scenarios. The requirements are that your data should be hierarchical and that each class representing items of a given level should implement the ITreeNode interface.
For example of how to provide data to this view model, you can look at the TestDrillDownChartDataSource.cs file along with the TestDrillDownClassHierarchy.cs file. There you will find a classes that represent:
  • Sales for a particular Continent
  • Sales for particular Company from a particular Continent (each Continent has a list of Companies)
  • Sales for a particular car Model, manufactured by a particular Company
  • And an enumeration representing the different levels of this hierarchy
To use the GenericDrillDownChartViewModel class, you need to provide the top level ItemsSource, DataPointBindings for each drill level, functions that return the next and the previous member of the DrillLevelEnum (so the view model know which binding to choose) and finally the start drill level.

I hope this helps!
 
Regards,
Petar Kirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ruth
Top achievements
Rank 1
answered on 26 Sep 2013, 05:49 AM
Thankyou so much Petar Kirov.
Tags
Chart
Asked by
Ruth
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Ruth
Top achievements
Rank 1
Share this question
or