xaml-sdk/Chart/WPF/EmptyValues
WPFTeamUser 8e6db6e592 New version of Telerik SDK examples. 2024-05-15 12:25:45 +00:00
..
Properties Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
App.xaml Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
App.xaml.cs Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
ChartData.cs Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
EmptyValues.csproj New version of Telerik SDK examples. 2024-05-15 12:25:45 +00:00
EmptyValuesViewModel.cs Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
MainWindow.xaml Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
MainWindow.xaml.cs Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00
Readme.md Revert "Merge pull request #56 from telerik/sdkUpdates" 2024-05-15 14:26:32 +03:00

Readme.md

Empty Values

The Q1 2011 version of the Chart control includes code to support empty/null values. There are many scenarios, in which the property of an object, or a collection of objects, to which the Chart is data bound, is null.

Note: RadChart recognizes null values as "empty" and not double.NaN-s.

  • In unbound scenarios, you need to explicitly set the DataPoint.IsEmpty property to true as the YValue property is of type double (and not nullable double) for backwards compatibility reasons.
  • In bound scenarios you need to use nullable double type to achieve the desired functionality.