AddLegend Method

The AddLegend method adds a new multi-graph legend to the document or adds a new legend to the specified graph. Returns an AutoLegend object.

Syntax

object.AddLegend( addAll, id )

 

Parameter Type Description
addAll Variant optional, set to true to add all plots automatically to legend (default = true)
id Variant optional, legend name

 

Example

This example shows how to add a legend to a graph.

Graph1.AddLegend(True)

 

Used by: AutoGraph object, AutoShape object, AutoPieChart object