[]
        
(Showing Draft Content)

Legend Class

Legend Class

Represents the chart legend.

Heirarchy

Constructors

constructor

Properties

maxSize

maxSize: number | string

Gets or sets the maximum legend size (width for left or right position and height for top or bottom position). The size can be specified in pixels: maxSize = '100px' or percents: maxSize = '50%'.

orientation

orientation: Orientation

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

position

position: Position

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

reverse

reverse: boolean

Gets or sets a value that determines whether the legend would be shown in reverse order or not The value should be 'true' or 'false' or undefined. Default value is undefined. If true, legends wwould be shown in reverse order If false, legends would be shown in non-reverse order If undefined, it would be decided automatically by the chart.

scrollbar

scrollbar: boolean

Gets or sets a value that determines whether the scrollbar should be used for a long legend.

The default value for this property is false.

title

title: string

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

titleAlign

titleAlign: string

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