Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Handle when the user clicks the CentreData section of the chart?
posted

I have an XamDoughnutChart and I have added a SliceClick="DoughnutChart_SliceClick" handler.

Is there a way I can handle when a user clicks the CentreData section of the chart?

For example I want to display different data depending on if the user clicks an individual slice or the centre of the chart.

Harry

  • 34510
    Offline posted

    Hi Harry,

    The SliceClick event is only going to fire when slices are clicked so it won't help with the center section as this is not a slice.  I recommend you provide an actual control as the CenterData and handle the mouse click event on this control.

    <ig:XamDoughnutChart.CenterData>
        <TextBlock Text="{Binding Value}" MouseDown="TextBlock1_MouseDown"/>
    </ig:XamDoughnutChart.CenterData>