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.

IgcLegendComponent

new IgcLegendComponent(): IgcLegendComponent

Returns IgcLegendComponent

container: WebComponentWrapper
htmlTagName: string

Inherited from: IgcLegendBaseComponent

legendItemMouseEnter: object

Inherited from: IgcLegendBaseComponent

legendItemMouseLeave: object

Inherited from: IgcLegendBaseComponent

legendItemMouseLeftButtonDown: object

Inherited from: IgcLegendBaseComponent

legendItemMouseLeftButtonUp: object

Inherited from: IgcLegendBaseComponent

legendItemMouseMove: object

Inherited from: IgcLegendBaseComponent

legendTextContentChanged: object
orientation: LegendOrientation
textColor: string
textStyle: string
get i(): Legend

Returns Legend

Inherited from: IgcLegendBaseComponent

Gets if the legend is a financial legend.

get isFinancial(): boolean

Returns boolean

Inherited from: IgcLegendBaseComponent

Gets if the legend is item-wise.

get isItemwise(): boolean

Returns boolean

get observedAttributes(): string[]

Returns string[]

Inherited from: IgcLegendBaseComponent

attributeChangedCallback(name: string, oldValue: string, newValue: string): void

Parameters

  • name: string
  • oldValue: string
  • newValue: string

Returns void

connectedCallback(): void

Returns void

destroy(): void

Returns void

disconnectedCallback(): void

Returns void

Inherited from: IgcLegendBaseComponent

Returns the legend visuals expressed as a serialized string.

exportSerializedVisualData(): string

Returns string

Inherited from: IgcLegendBaseComponent

findByName(name: string): any

Parameters

  • name: string

Returns any

Inherited from: IgcLegendBaseComponent

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

flushTextContentChangedCheck(): void

Returns void

Inherited from: IgcLegendBaseComponent

simulateClick(point: IgPoint): void

Parameters

  • point: IgPoint

Returns void

Inherited from: IgcLegendBaseComponent

simulateHover(point: IgPoint): void

Parameters

  • point: IgPoint

Returns void

Inherited from: IgcLegendBaseComponent

simulateMouseLeave(): void

Returns void

register(): void

Returns void