IMSL C# Numerical Library

Chart.AddLegendItem Method 

Adds a Legend to a ChartNode.

public virtual void AddLegendItem(
   int type,
   ChartNode node
);

Parameters

type
An int which specifies the LegendItem type.
node
A ChartNode to which a Legend is to be added.

Remarks

This method is intended to be called from within the Paint method of classes which explicitly paint their own child chart nodes. The child chart nodes to be included in the legend must be added to the legend during each call to Paint of the parent chart node.

Typical users of the chart library do not need to call this routine. This method is for use by those writing new charting classes.

The possible legend types are:
  1. DATA_TYPE_NONE
  2. DATA_TYPE_LINE
  3. DATA_TYPE_MARKER
  4. DATA_TYPE_FILL

See Also

Chart Class | Imsl.Chart2D Namespace