wpf-devexpress-dot-xpf-dot-charts-dot-chartcontrol-88e55892.md
Synchronize the internal data representation of the chart with the current state of the data source.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public void UpdateData()
Public Sub UpdateData
Use the UpdateData method to refresh the chart when the data in the underlying datasource has been changed and it is necessary to reflect those changes.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UpdateData() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-charts-custom-draw-chart-series-points/CS/CustomDrawChart/MainWindow.xaml.cs#L19
if (chart != null)
chart.UpdateData();
}
wpf-charts-custom-draw-chart-series-points/VB/CustomDrawChart/MainWindow.xaml.vb#L15
Private Sub chbCustomDraw_Checked(ByVal sender As Object, ByVal e As RoutedEventArgs)
If Me.chart IsNot Nothing Then Me.chart.UpdateData()
End Sub
See Also