Module: LegendConfig

Configuration properties for color, shape and size legend.
Parameters:
Name Type Description
show boolean Whether to show or hide the legend.
borderColor string Border color of legend box.
item Object Legend item configuration
Properties
Name Type Description
text Object Legend item text configuration.
Properties
Name Type Description
width number Item text width.
orientation string Text orientation of item text.
formatter string Returns formatted item text value.
icon Object Legend icon configuration.
Properties
Name Type Description
type string Type of icon. Supported values are:- ['circle', 'diamond', 'star', 'cross', 'square', 'wye', 'triangle']
width number Width of icon.
height number Height of icon.
color string Color of icon.
Source: