PenCaptionStyle property
Returns or sets the pen caption text displays in the Line Legend on a chart. Read/write. Constant.
Syntax
Trend
.PenCaptionStyle
[ = value
]where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.value -
is a constant of the type RSTpenCaptionStyle. It can display the full name, the data item name only, or the description in 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