JavaScript/jQuery VectorMap - Legend
Configures map legends.
customizeHint
Specifies text for a hint that appears when a user hovers the mouse pointer over the text of a legend item.
Information on a legend item.
Name | Type | Description |
---|---|---|
color |
The legend item's color. This field is undefined if the source is 'markerSizeGroups'. |
|
end |
The end value of the group indicated by the legend item. |
|
index |
The group's index. |
|
size |
The diameter of the legend item in pixels. This field is undefined if the source is 'areaColorGroups' or 'markerColorGroups'. |
|
start |
The start value of the group indicated by the legend item. |
The text for the hint to display.
customizeItems
Allows you to change the order and visibility of legend items.
Legend items before customizations.
Legend items after customizations.
customizeText
Specifies text for legend items.
Information on a legend item.
Name | Type | Description |
---|---|---|
color |
The legend item's color. This field is undefined if the source is 'markerSizeGroups'. |
|
end |
The end value of the group indicated by the legend item. |
|
index |
The group's index. |
|
size |
The diameter of the legend item in pixels. This field is undefined if the source is 'areaColorGroups' or 'markerColorGroups'. |
|
start |
The start value of the group indicated by the legend item. |
The text for the legend item to display.
markerColor
Specifies the color of item markers in the legend. The specified color applied only when the legend uses 'size' source.
markerTemplate
Specifies an SVG element that serves as a custom legend item marker.
Information about a legend item.
A marker's container.
One of the following:
- Template name
- SVG markup as a string
- SVGElement
- jQuery element that contains an SVGElement