Configures the legend.
The legend is a component that helps a user identify funnel items. The legend contains several items, one per funnel item, each consisting of a colored marker and text showing the funnel item's argument.
You can make the legend visible by setting the legend.visible option to true.
Colors the legend's background.
This option supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
Arranges legend items into several columns.
Specifies an empty space between item columns in pixels.
Specifies the hint that appears when a user hovers the mouse pointer over a legend item.
The text to be displayed in the hint.
This option accepts a function that must return the required text. When implementing this function, use its parameter to access the information on the series that corresponds to the legend item.
Customizes the text displayed by legend items.
The text for the legend item to display.
Along with verticalAlignment, specifies the legend's position.
Aligns items in the last column or row (depending on the legend's orientation). Applies when legend items are not divided into columns or rows equally.
When using the widget as an ASP.NET MVC Control, specify this option using the
HorizontalAlignment enum. This enum accepts the following values:
Specifies the text's position relative to the marker in a legend item.
Generates an empty space, measured in pixels, around the legend.
When set to a number, this option applies to all the legend's sides. The object allows you to control each side individually.
Arranges legend items vertically (in a column) or horizontally (in a row). The default value is "horizontal" if the legend.horizontalAlignment is "center". Otherwise, it is "vertical".
Generates an empty space, measured in pixels, between the legend's left/right border and its items.
Generates an empty space, measured in pixels, between the legend's top/bottom border and its items.
Arranges legend items in several rows.
Along with horizontalAlignment, specifies the legend's position.