JavaScript/jQuery Funnel - legend
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.
backgroundColor
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
columnCount
Arranges legend items into several columns.
Use this option when the legend is oriented vertically. Otherwise, use rowCount.
See Also
- legend.columnItemSpacing
customizeHint
Specifies the hint that appears when a user hovers the mouse pointer over a legend item.
Information on the funnel item and its corresponding legend item.
Name | Type | Description |
---|---|---|
item |
The Item object. |
|
text |
The legend item's text. |
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.
customizeText
Customizes the text displayed by legend items.
Information on the funnel item and its corresponding legend item.
Name | Type | Description |
---|---|---|
item |
The Item object. |
|
text |
The legend item's original text. |
The text for the legend item to display.
this
keyword.horizontalAlignment
Along with verticalAlignment, specifies the legend's position.
When using the widget as an ASP.NET MVC Control, specify this option using the HorizontalAlignment
enum. This enum accepts the following values: Left
, Center
and Right
.
See Also
- legend.orientation
itemsAlignment
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: Left
, Center
and Right
.
margin
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.
orientation
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".
When using the widget as an ASP.NET MVC Control, specify this option using the Orientation
enum. This enum accepts the following values: Horizontal
and Vertical
.
See Also
- legend.verticalAlignment
- legend.horizontalAlignment
paddingLeftRight
Generates an empty space, measured in pixels, between the legend's left/right border and its items.
paddingTopBottom
Generates an empty space, measured in pixels, between the legend's top/bottom border and its items.
rowCount
Arranges legend items in several rows.
Use this option when the legend is oriented horizontally. Otherwise, use columnCount.
See Also
- legend.rowItemSpacing
verticalAlignment
Along with horizontalAlignment, specifies the legend's position.
When using the widget as an ASP.NET MVC Control, specify this option using the VerticalEdge
enum. This enum accepts the following values: Top
and Bottom
.
See Also
- legend.orientation
If you have technical questions, please create a support ticket in the DevExpress Support Center.