BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I'm using SfChart wirh PieSeries like below
I'm displaying live data and of course I want the chart to be update when data change.But seems it's not working properly.Actually it is working for change on the PrimaryAxis (Add/Remove pie slice)But it's not working for change on SecondaryAxis. I mean Count value changes do not update the PieChart. I need to fully reset the AppStatsList to have the PieChart updated.Is that the normal behavior?SfChart is not suposed to be real-time ?I have also attached a sample !
<chart:PieSeries EnableSmartLabels="true" EnableAnimation="True" ShowTooltip="True" chart:ChartTooltip.EnableAnimation="True" ItemsSource="{Binding SummaryViewModel.AppStatsList}" XBindingPath="Name" YBindingPath="Count" Margin="0"/>
public ObservableCollection<AppStats> AppStatsList { get { return _appStatsList; } }
public class AppStats : Syncfusion.Windows.Shared.NotificationObject { public string Name { get; set; } private int _count; public int Count { get { return _count; } set { _count = value; RaisePropertyChanged("Count"); } } }
Hi Rodolphe,
We have analyzed your requirement and you can achieve your requirement by setting the property ListenPropertyChange as true for the PieSeries as shown in the below code snippet.
Code Snippet [XAML]:
<chart:PieSeries ListenPropertyChange="True" x:Name="Pie" ConnectorType="Line" XBindingPath="Country" YBindingPath="Count" ItemsSource="{Binding Data}" EnableSmartLabels="true"
Please find the attached sample
Please let us know if you have any queries.
Thanks,
Mohammed Azarudeen.
Hi Rodolphe,
We have analyzed your requirement and we have prepared a sample based on your requirement (dynamically add data points and all points get refreshed). Please find the attached sample.
Please let us know if you have any queries.
Thanks,
Mohammed Azarudeen.