Click or drag to resize
ChartAddLegendItem Method
Adds a Legend to a ChartNode.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public virtual void AddLegendItem(
	int type,
	ChartNode node
)

Parameters

type
Type: SystemInt32
An int which specifies the LegendItem type.
node
Type: Imsl.Chart2DChartNode
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