Represents a legend in a DataChartComponent control.

The Legend helps end-user identify visuals of chart series with contextual information related to the data plotted in the chart control.

``

``

IgrLegend

new IgrLegend(props: IIgrLegendProps): IgrLegend

Returns IgrLegend

container: ReactWrapper
get i(): Legend

Returns Legend

Inherited from: IgrLegendBase

Gets if the legend is a financial legend.

get isFinancial(): boolean

Returns boolean

Inherited from: IgrLegendBase

Gets if the legend is item-wise.

get isItemwise(): boolean

Returns boolean

Gets or sets the current Legend object's orientation.

``

get orientation(): LegendOrientation

Returns LegendOrientation

set orientation(v: LegendOrientation): void

Parameters

Returns void

Gets or sets color of text

``

get textColor(): string

Returns string

set textColor(v: string): void

Parameters

  • v: string

Returns void

Gets or sets style of text.

``

get textStyle(): string

Returns string

set textStyle(v: string): void

Parameters

  • v: string

Returns void

componentDidMount(): void

Returns void

destroy(): void

Returns void

Inherited from: IgrLegendBase

Returns the legend visuals expressed as a serialized string.

exportSerializedVisualData(): string

Returns string

Inherited from: IgrLegendBase

findByName(name: string): any

Parameters

  • name: string

Returns any

Inherited from: IgrLegendBase

Use to force the Legend to check for differences in text content.

flushTextContentChangedCheck(): void

Returns void

render(): DetailedReactHTMLElement<object, HTMLDivElement>

Returns DetailedReactHTMLElement<object, HTMLDivElement>

Inherited from: IgrLegendBase

shouldComponentUpdate(nextProps: any, nextState: any): boolean

Parameters

  • nextProps: any
  • nextState: any

Returns boolean

Inherited from: IgrLegendBase

simulateClick(point: IgPoint): void

Parameters

  • point: IgPoint

Returns void

Inherited from: IgrLegendBase

simulateHover(point: IgPoint): void

Parameters

  • point: IgPoint

Returns void

Inherited from: IgrLegendBase

simulateMouseLeave(): void

Returns void