Sencha Documentation

Defines a legend for a chart's series. The 'chart' member must be set prior to rendering.

Config Options

 
boxFill : String
Fill style for the legend box
Fill style for the legend box
 
boxStroke : String
Style of the stroke for the legend box
Style of the stroke for the legend box
 
Width of the stroke for the legend box
Width of the stroke for the legend box
 
boxZIndex : Number
Sets the z-index for the legend. Defaults to 100.
Sets the z-index for the legend. Defaults to 100.
 
itemSpacing : Number
Amount of space between legend items
Amount of space between legend items
 
labelFont : String
Font to be used for the legend labels.
Font to be used for the legend labels.
 
padding : Number
Amount of padding between the legend box's border and its items
Amount of padding between the legend box's border and its items
 
position : String
The position of the legend in relation to the chart. One of: "top", "bottom", "left", "right", or "float". If set to ...
The position of the legend in relation to the chart. One of: "top", "bottom", "left", "right", or "float". If set to "float", then the legend box will be positioned at the point denoted by the x and y parameters.
 
visible : Boolean
Whether or not the legend should be displayed.
Whether or not the legend should be displayed.
 
x : Number
X-position of the legend box. Used directly if position is set to "float", otherwise it will be calculated dynamical...
X-position of the legend box. Used directly if position is set to "float", otherwise it will be calculated dynamically.
 
y : Number
Y-position of the legend box. Used directly if position is set to "float", otherwise it will be calculated dynamicall...
Y-position of the legend box. Used directly if position is set to "float", otherwise it will be calculated dynamically.

Properties

 
isVertical : Boolean
Whether the legend box is oriented vertically, i.e. if it is on the left or right side or floating.
Whether the legend box is oriented vertically, i.e. if it is on the left or right side or floating.