TFunnelSeries.AddSegment

TFunnelSeries.AddSegment
TFunnelSeries

function AddSegment(Const AQuote, AOpportunity: Double; Const ALabel: String; AColor: TColor): Integer;

Unit
TeeFunnel

Description
Use AddSegment method to add new Funnel segment to the Series. The new segment is represented by AQuote and AOpportunity value. The ALabel parameter is optional (can be empty ''). The AColor parameter is optional (can be clTeeColor). The function returns the new point position in the Values list.
The AddSegment triggers the reconstruction of Funnel chart. If you want to avoid this, set the AutoUpdate property to false and then call the Recalculate method when you want to reconstruct Funnel chart.

NOTE :
The internal drawing algorithm requires that QuoteValues are sorted in descending order. There are two ways you can ensure this:
1) Sort segments by QuoteValues in descending order before you add them to series. In this case you can override internal sorting algorithm by setting the QuotesSorted property to true.
2) Use the internal sorting algorithm. You can enable the internal sorting algorithm by setting the QuotesSorted property to false.