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

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

2 Answers 116 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 24 Oct 2016, 04:51 PM

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 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 24 Oct 2016, 05:58 PM
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".
0
Martin Ivanov
Telerik team
answered on 27 Oct 2016, 02:54 PM
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!
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or