dotnetCHARTING Send comments on this topic.
CalculateEmptyElement Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : CalculateEmptyElement Property


Gets or sets a value indicating whether the values of empty elements are percieved as 0 or omitted in calculations performed with the Chart.SeriesCollection.Add(Calculation calc) shortcut.

Syntax

Visual Basic (Declaration) 
Public Property CalculateEmptyElement As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim value As Boolean
 
instance.CalculateEmptyElement = value
 
value = instance.CalculateEmptyElement
C# 
public bool CalculateEmptyElement {get; set;}

Example

C#Copy Code
Chart.CalculateEmptyElement = true;
    
Visual BasicCopy Code
Chart.CalculateEmptyElement = true

Remarks

If this property is set to false, in all calculations (average,min,median,mode etc.) only the applicable elements are counted. If set to true, such elements are given 0 values and included in the calculation. This case occurs when you have multiple series and are calculating derived series from them. Defaults to true.

See Also

© 2008 All Rights Reserved.