Hi Alexey,
Thanks for using Syncfusion products.
We have analyzed the reported query. Initially the segments
are not updated, we have modified the content as shown in the below code
snippet. Also, we have prepared the sample based on your query. Please download
it from the given below location.
Code Snippet [C#]:
private void ChartBase_OnSelectionChanged(object
sender, ChartSelectionChangedEventArgs e)
{
var
seg = (e.SelectedSegment) as ChartSegment;
ChartSeriesBase
series = seg.Series;
int
b1 = (series.ItemsSource as ObservableCollection<DataValues>).IndexOf(seg.Item
as DataValues);
if
((e.SelectedSeries as PieSeries).ExplodeIndex != b1)
(e.SelectedSeries as PieSeries).ExplodeIndex = b1;
else
{
(e.SelectedSeries as PieSeries).ExplodeIndex = -1;
(e.SelectedSeries as
PieSeries).UpdateSegments(b1,NotifyCollectionChangedAction.Reset);
}
}
Please let us know if you require further assistance on
this.
Regards,
Suresh S
Attachment:
Sample_7acd4ebf.zip