We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to achieve the drill-down functionality in UWP Charts

Platform: UWP |
Control: SfChart |
.NET Framework: 4.5 |
Product Version:

The drill-down is a capability that takes the user from a more general view of the data to a more specific one at the click of a mouse. It also gives the ability to the user to see the data and information in more detail with different styles.


Syncfusion SfChart in UWP platform has achieved this drill-down functionality with help of its SelectionChangedEvent and its way of  populating the data to the chart by considering the below use case. 


In automobile sales concept, initial chart representation is about the list of automobiles (Pie chart representation) and each segment tap, leads to have a variety of its brands list (Column chart representation).


The following steps will guide you how to achieve this expected functionality:


Step 1: Define the chart with list of automobiles collection.


<syncfusion:SfChart SelectionChanged="chart_SelectionChanged" Height="300" Width="500">
            <!--Definition of legend-->
            <!--To enable the selection support-->
                <syncfusion:ChartSelectionBehavior EnableSegmentSelection="True" />
            <!--Series declaration-->
            <syncfusion:PieSeries ItemsSource="{Binding Data}" Palette="AutumnBrights" XBindingPath="Type" YBindingPath="Value" >
                    <syncfusion:ChartAdornmentInfo  ShowLabel="True" />


Here, data represents the collection of models, which has name of automobile variety and its count values.


Step 2: Drill-down functionality observed concepts.


private void chart_SelectionChanged(object sender, ChartSelectionChangedEventArgs e)
            IList items = e.SelectedSeries.ItemsSource as IList;
            if (e.SelectedIndex != -1)
                //Set the current window content from navigated page which is representing the chart with detailed
                Window.Current.Content = new SecondPage(items[e.SelectedIndex] as Model);
                //To get back to initial page, enable the back button with the help of SystemNavigationManager's AppViewBackButtonVisibility.
                SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
                //Once back button click to view the entire automobile list then, it will keep the content of window as main page
                SystemNavigationManager.GetForCurrentView().BackRequested += (s, r) =>
                    Window.Current.Content = new MainPage();
                    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed;


Step 3: Declaration of navigated page and its data populated ways.


<syncfusion:SfChart  Height="300" Width="500">
            <!--desired series declaration with populating the specific collection-->
                <syncfusion:ColumnSeries XBindingPath="Type" YBindingPath="Value" ItemsSource="{x:Bind SelectedModel.Collections}" Palette="BlueChrome">



public sealed partial class SecondPage : Page
        //SelectedModel represents the collection of automobile variety list
        public Model SelectedModel { get; set; }
        public SecondPage(Model selectedDatapoint)
            SelectedModel = selectedDatapoint;


View the sample in GitHub.


drill-down functionality in chart



See also

How to add multiple legend items in scroll viewer in UWP Chart

How to get a notification when the legend items are clicked in UWP Chart

How to bind the SQL Database in UWP Chart

How to bind the JSON data in UWP Chart


2X faster development

The ultimate UWP UI toolkit to boost your development speed.
You must log in to leave a comment
Mike Christie
Oct 26, 2020

Ok, so I got this working but how do you drill back up? Does this need to be done manually in code as well?

Hemalatha Marikumar [Syncfusion]
Nov 17, 2020

Hi Mike,

To answer your query, we have modified this KB to come back to the main chart view

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile