Access to all Chart Legend characteristics

For a list of all members of this type, see Legend Members


System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         Steema.TeeChart.Drawing.TeeBase
            Steema.TeeChart.Drawing.Shape
               Steema.TeeChart.Drawing.TextShape
                  Steema.TeeChart.Drawing.TextShapePosition
public class Legend : TextShapePosition , IComponent, IDisposable
, ICloneable

Remarks

Legend is a large class with many available formatting and dimensioning properties.

A legend is a rectangle filled with the Chart Series Titles or a Series Values formatted representation. You can switch this operational mode by setting the LegendStyle property.

The Alignment property defines the Legend position.
Legend can be placed at Top, Left, Right and Bottom side of Chart, or custom positioned using the TopLeftPos property.

Left and Right Legend alignments define a vertical Legend with one single column of items.

Top and Bottom Legend alignments define an horizontal Legend with one or more rows of items.

The Legend itself automatically reduces the number of displayed legend items based on the available charting space.

The ResizeChart property controls if Legend dimensions should be used to reduce Chart points space.

The GetLegendRect event provides a mechanism to supply the desired Rectangle Legend dimensions and placement.

The GetLegendPos event can be used to specify fixed Legend items X Y coordinates.

The HorizMargin and VertMargin properties control distance between Legend and Left and Right Chart margins.

These techniques allow almost complete Legend control. For more information please see "Tutorial 5 - Legend Design".

Requirements

Namespace: Steema.TeeChart Namespace

Assembly: TeeChart.dll

See Also

Legend members | Steema.TeeChart Namespace