WjFlexChartLegend Class

File
wijmo.angular2.js
Module
wijmo/wijmo.angular2.chart
Base Class
Legend
Show
   

Angular 2 component for the Legend control.

The wj-flex-chart-legend component must be contained in one of the following components: WjFlexChart , WjFlexPie , WjFinancialChart , WjFlexRadar or WjSunburst.

Use the wj-flex-chart-legend component to add Legend controls to your Angular 2 applications. For details about Angular 2 markup syntax, see Angular 2 Markup.

The WjFlexChartLegend component is derived from the Legend control and inherits all its properties, events and methods.

Constructor

Properties

Methods

Constructor

constructor

constructor(chart: FlexChartBase): Legend

Initializes a new instance of the Legend class.

Parameters
Inherited From
Legend
Returns
Legend

Properties

initialized

This event is triggered after the component has been initialized by Angular, that is all bound properties have been assigned and child components (if any) have been initialized.

Type
EventEmitter

isInitialized

Indicates whether the component has been initialized by Angular. Changes its value from false to true right before triggering the initialized event.

Type
boolean

position

Gets or sets a value that determines whether and where the legend appears in relation to the plot area.

Inherited From
Legend
Type
Position

title

Gets or sets a value that determines the title of the legend.

Inherited From
Legend
Type
string

titleAlign

Gets or sets a value that determines the align value of the legend. The value should be 'left', 'center' or 'right'.

Inherited From
Legend
Type
string

wjProperty

Gets or sets a name of a property that this component is assigned to. Default value is 'legend'.

Type
string

Methods

created

created(): void

If you create a custom component inherited from a Wijmo component, you can override this method and perform necessary initializations that you usually do in a class constructor. This method is called in the last line of a Wijmo component constructor and allows you to not declare your custom component's constructor at all, thus preventing you from a necessity to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.

Returns
void