Class LegendNavigation
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.LegendNavigation
- All Implemented Interfaces:
Serializable
Options for the paging or navigation appearing when the legend is overflown.
Navigation works well on screen, but not in static exported images. One way
of working around that is to increase the chart height in export.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStyle()
void
setActiveColor
(Color activeColor) The color for the active up or down arrow in the legend page navigation.void
setAnimation
(Boolean animation) How to animate the pages when navigating up or down.void
setArrowSize
(Number arrowSize) The pixel size of the up and down arrows in the legend paging navigation.void
setEnabled
(Boolean enabled) Whether to enable the legend navigation.void
setInactiveColor
(Color inactiveColor) The color of the inactive up or down arrow in the legend page navigation.void
Text styles for the legend page navigation.
-
Constructor Details
-
LegendNavigation
public LegendNavigation() -
LegendNavigation
-
-
Method Details
-
getActiveColor
- See Also:
-
setActiveColor
The color for the active up or down arrow in the legend page navigation.Defaults to: #003399
-
getAnimation
- See Also:
-
setAnimation
How to animate the pages when navigating up or down. A value oftrue
applies the default navigation given in the chart.animation option. Additional options can be given as an object containing values for easing and duration. .Defaults to: true
-
getArrowSize
- See Also:
-
setArrowSize
The pixel size of the up and down arrows in the legend paging navigation. .Defaults to: 12
-
getEnabled
- See Also:
-
setEnabled
Whether to enable the legend navigation. In most cases, disabling the navigation results in an unwanted overflow.
See also the adapt chart to legend plugin for a solution to extend the chart height to make room for the legend, optionally in exported charts only.
Defaults to: true
-
getInactiveColor
- See Also:
-
setInactiveColor
The color of the inactive up or down arrow in the legend page navigation. .Defaults to: #cccccc
-
getStyle
- See Also:
-
setStyle
Text styles for the legend page navigation.
-