DisplayLineLegend property
Returns or sets whether or not to display a legend for each trend line on the chart. Read/write. Boolean.
Syntax
Trend
.DisplayLineLegend
[ = state
]where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.state
- is a parameter of the type Boolean that can be set to one of the following:- True. Displays the line legend.
- False. Does not display the line legend.
Chart example

Set up line legend options on the Trend properties Display tab.
Double-click the line legend at runtime to open the Pens tab. (This option must be selected on the Runtime tab.)
Provide Feedback