Highcharts translation series 6: legend options
Parameters
Description
Default Value
Align
Horizontal position of the legend
Center
BackgroundColor
Legend background color
Null
BorderColor
Border color of the legend
#909090
BorderRadius
Corner radius of the legend
5.0
BorderWidth
Border width of the legend
1.0
Enabled
Enable or disable legend
True
Floating
When the legend is floating, it is ignored in the drawing area and placed behind the legend.
False
ItemHiddenStyle
CSS style when each series project or vertex project of the legend is hidden
Null
ItemHoverStyle
For each series of projects or click items in the legend, the mouse slides out of the CSS style
Null
ItemMarginBottom
The bottom margin of each legend item.
0.0
ItemMarginTop
Top margin of each legend item
0.0
ItemStyle
CSS style of each legend item
Null
ItemWidth
The width of each legend item. This is useful when a horizontal legend that contains multiple legend items needs to be vertically aligned.
Null
LabelFormatter
Series formatting tags
Null
Layout
The layout of the legend project. It can be 'horizontal 'or 'vertical'
Horizontal
LineHeight
The Row Height of the legend item. Expired after V2.1
16.0
Margin
If the drawing area is automatically calculated and the legend is not floating, the margin of the legend is the space of the legend, coordinate axis label, or drawing area.
15.0
MaxHeight
Maximum height of the legend
Null
Navigation
Option for paging navigation when the legend overflows
Padding
Padding of the legend box
8.0
Reversed
Whether the order of legend items is in reverse order relative to the sequence defined by series or points
False
Rtl
Whether to place the flag on the right of the text
False
Shadow
Legend shadow
False
Style
CSS style of the legend.
Null
SymbolPadding
Distance between the logo and text in the legend
5.0
SymbolWidth
Width of the logo in the legend
30.0
UseHTML
Whether to use HTML to render the text of a legend Project
False
VerticalAlign
Vertical Alignment of the legend box
Bottom
Width
Legend width
Null
X
Offset of x relative to chart. spacingLeft and chart. spacingRight of align
0.0
Y
Vertical offset relative to chart. spacingTop and chart. spacingBottom of verticalign
0.0