IValueList.Total
IValueList

property Total: Double;

Type Library
TeeChartx

Description
The Total double property maintains the sum of all IValueList values. When adding, deleting or modifying point values using the right methods, Total is automatically incremented and decremented.

Total property is used by some Functions to improve speed when performing calculations against point values, where having already calculated the sum of point values is necessary.

Total property Example [Delphi]:

This code informs the user the Total sum of "Sales1997" Series values:

ShowMessage(' Total Sales are: ' + FloatToStr( Sales1997.YValues.Total ) );

Example [Visual Basic]:

MsgBox "Total Sales Are: " & TChart1.Series(0).YValues.Total