Tooltip and selection behavior for area series? And a few pie questions.

3 posts, 0 answers
  1. Steve
    Steve avatar
    43 posts
    Member since:
    May 2014

    Posted 24 Oct Link to this post

    Using the winforms version I was able to achieve this by creating my own renderer and overriding the hit-test behavior. Is there a way to do something similar in the WPF version?

     

    Also semi-related... in the pie chart I am using the selection to get notification that the user clicks on a data point, and then take some action. Usually it involves redrawing the chart and that all works fine. However when I don't redraw the chart, the datapoint is altered visually. Is there some way to "cancel" the selection in that case, or at least control how the datapoint is visually affected when selected?

     

    Also (sorry things keep coming to me), I like the hovermode "FadeOtherItems" over look, but I feel that the amount that everything is faded is too great. Is there a way to control that?

  2. Steve
    Steve avatar
    43 posts
    Member since:
    May 2014

    Posted 24 Oct Link to this post

    Additional information: my series are created programmatically through series.add and not through markup or with a series provider. I prefer to get the tooltip/selection beavior anywhere in the area, not just add some circle defined around the "points".
  3. UI for WPF is Visual Studio 2017 Ready
  4. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 27 Oct Link to this post

    Hello Steve,

    RadChartView provides several interaction behaviors which you can check.
    About the selection in the pie chart, the pie slice will be redrawn according to the new value, brush, etc. applied to it. I am not sure that I understand properly what is your requirement. To cancel the selection you can subscribe for the ChartSelectionBehavior's SelectionChanged event and set the IsSelected property of the DataPoint objects in the e.AddedPoints collection to False. If you want to avoid updating the position of the selected pie slice you can set the SelectedPointOffset property of the PieSeries to 0. Note that the PieDataPoint object also has a property that controls the selection offset - it is called OffsetFromCenter. If this doesn't help I would ask you to what do you mean by that the data point is altered visually and how this change is triggered.

    As for the HoverMode opacity, the chart's API doesn't allow changes in it. In order to achieve your requirement you can implement custom logic for this.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top