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.
|
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.
|
Object |
shadow
Whether to apply a drop shadow to the legend.
|
Integer |
symbolPadding
The pixel padding between the legend item symbol and the legend item text.
|
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 it's 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() |
public AlignHorizontal align
public String backgroundColor
public String borderColor
public Integer borderRadius
public Integer borderWidth
public Boolean enabled
public Boolean floating
public Integer itemDistance
public final StyleOptions itemHiddenStyle
color: '#CCC'
public final StyleOptions itemHoverStyle
color: '#000'
public Integer itemMarginBottom
public Integer itemMarginTop
public final StyleOptions itemStyle
cursor: 'pointer'
color: '#3E576F'
public Integer itemWidth
@JavaScript public String labelFormatter
public Orientation layout
public Integer margin
public Integer maxHeight
public final LegendNavigationOptions navigation
public Integer padding
public Boolean reversed
public Boolean rtl
public Object shadow
public Integer symbolPadding
public Integer symbolWidth
public LegendTitleOptions title
public Boolean useHTML
public AlignVertical verticalAlign
public Integer width
public Integer x
public Integer y
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.