public class LegendOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
AlignHorizontal |
align
The horizontal alignment of the legend box within the chart area.
|
String |
backgroundColor
The background color of the legend, filling the rounded corner border.
|
String |
borderColor
The color of the drawn border around the legend.
|
Integer |
borderRadius
The border corner radius of the legend.
|
Integer |
borderWidth
The width of the drawn border around the legend.
|
Boolean |
enabled
Enable or disable the legend.
|
Boolean |
floating
When the legend is floating, the plot area ignores it and is allowed to be placed below it.
|
Integer |
itemDistance
In a legend with horizontal layout, the itemDistance defines the pixel distance between each
item.
|
StyleOptions |
itemHiddenStyle
CSS styles for each legend item when the corresponding series or point is hidden.
|
StyleOptions |
itemHoverStyle
CSS styles for each legend item in hover mode.
|
Integer |
itemMarginBottom
The pixel bottom margin for each legend item.
|
Integer |
itemMarginTop
The pixel top margin for each legend item.
|
StyleOptions |
itemStyle
CSS styles for each legend item.
|
Integer |
itemWidth
The width for each legend item.
|
Boolean |
keyboardNavigation_enabled
Enable/disable keyboard navigation for the legend.
|
String |
labelFormat
A format string for each legend label.
|
String |
labelFormatter
Callback function to format each of the series' labels.
|
Orientation |
layout
The layout of the legend items.
|
Integer |
margin
If the plot area sized is calculated automatically and the legend is not floating, the legend
margin is the space between the legend and the axis labels or plot area.
|
Integer |
maxHeight
Maximum pixel height for the legend.
|
LegendNavigationOptions |
navigation
Options for the paging or navigation appearing when the legend has overflowed.
|
Integer |
padding
The inner padding of the legend box.
|
Boolean |
reversed
Whether to reverse the order of the legend items compared to the order of the series or
points as defined in the configuration object.
|
Boolean |
rtl
Whether to show the symbol on the right side of the text rather than the left side.
|
ShadowOptions |
shadow
Whether to apply a drop shadow to the legend.
|
Boolean |
squareSymbol
When this is true, the legend symbol width will be the same as the symbol height, which in
turn defaults to the font size of the legend items.
|
StyleOptions |
style
CSS styles for the legend area.
|
Integer |
symbolHeight
The pixel height of the symbol for series types that use a rectangle in the legend.
|
Integer |
symbolPadding
The pixel padding between the legend item symbol and the legend item text.
|
Integer |
symbolRadius
The border radius of the symbol for series types that use a rectangle in the legend.
|
Integer |
symbolWidth
The pixel width of the legend item symbol.
|
LegendTitleOptions |
title
A title to be added on top of the legend.
|
Boolean |
useHTML
Whether to use HTML to render the legend item texts.
|
AlignVertical |
verticalAlign
The vertical alignment of the legend box.
|
Integer |
width
The width of the legend box, not including style.padding.
|
Integer |
x
The x offset of the legend relative to its horizontal alignment align within
chart.spacingLeft and chart.spacingRight.
|
Integer |
y
The vertical offset of the legend relative to it's vertical alignment verticalAlign within
chart.spacingTop and chart.spacingBottom.
|
| Constructor and Description |
|---|
LegendOptions() |
@Option public AlignHorizontal align
@Option public String backgroundColor
@Option public String borderColor
@Option public Integer borderRadius
@Option public Integer borderWidth
@Option public Boolean floating
@Option public Integer itemDistance
@Option public final StyleOptions itemHiddenStyle
@Option public final StyleOptions itemHoverStyle
@Option public Integer itemMarginBottom
@Option public Integer itemMarginTop
@Option public final StyleOptions itemStyle
@Option public Integer itemWidth
@Option(value="keyboardNavigation.enabled") public Boolean keyboardNavigation_enabled
@Option public String labelFormat
@Option(convertTo=org.fujion.ancillary.JavaScript.class) public String labelFormatter
@Option public Orientation layout
@Option public Integer margin
@Option public Integer maxHeight
@Option public final LegendNavigationOptions navigation
@Option public Boolean reversed
@Option public Boolean rtl
@Option public ShadowOptions shadow
@Option public Boolean squareSymbol
@Option public final StyleOptions style
@Option public Integer symbolHeight
@Option public Integer symbolPadding
@Option public Integer symbolRadius
@Option public Integer symbolWidth
@Option public final LegendTitleOptions title
@Option public Boolean useHTML
@Option public AlignVertical verticalAlign
@Option public Integer width
@Option public Integer x
Copyright © 2018 Fujion Framework. All rights reserved.