FactIndex (Property)

Applies To:

TrendLine object, ReferenceLine object

Description:

Index of facts in the Fact collection for which the trend line is built. A trend line added for the sum of all facts has an index value of zero. This property is the equivalent to the Fact dropdown which contains the list of facts available for assigning to the trend line. In current version it is not possible to bind several trend lines to a single fact.

Action:

Read-write

Example:

This example shows how to display the fact index numbers for two trend lines in a Line chart:

Alert(ActiveDocument.Sections["Chart6"].TrendLines[1].FactIndex)
Alert(ActiveDocument.Sections["Chart6"].TrendLines[2].FactIndex)