AddEntry Method

The AddEntry method adds a new entry to a legend. Returns a Short with the entry index.

Syntax

object.AddEntry( plot )

 

Parameter Type Description
plot String required, ID of plot to be added to legend

 

Remarks

When adding an entry to a multi-graph legend, the plot parameter is the graph ID  and plot ID separated by a colon, <graph>:<plot>. See Example 2 for an example.

Example 1

This example shows how to add an entry to a legend.

Legend.AddEntry(Hi-Low-Close Plot 1)

Example 2

This example shows how to add an entry to a multi-graph legend.

Legend.AddEntry(Graph 2:Line/Scatter Plot 1)

 

Used by: AutoLegend object