React VectorMap - legends.border

Specifies legend border settings.

Type:

Object

This object configures the appearance of the legend border. By default, the legend border is hidden. To make it visible, set the visible option of the border object to true. Then, you can adjust settings of the legend border, such as color, width or opacity using the corresponding options of the border object.

color

Specifies the color of the legend border.

Type:

String

Default Value: '#d3d3d3'

This option supports the following colors:

To make the legend border visible, set its visible option to true.

cornerRadius

Specifies a radius for the corners of the legend border.

Type:

Number

Default Value: 0

dashStyle

Specifies the dash style of the legend border.

Type:

String

Default Value: 'solid'
Accepted Values: 'dash' | 'dot' | 'longDash' | 'solid'

The following values are available:

  • solid
    Displays the border using a solid, continuous line.
  • longDash
    Displays the border using long dashes.
  • dash
    Displays the border using dashes.
  • dot
    Displays the border using dots.
  • Any combination of 'longDash', 'dash' and 'dot'
    Displays the border by repeating the specified combination. For instance, 'dashdotdash'.

When using the widget as an ASP.NET MVC Control, specify this option using the DashStyle enum. This enum accepts the following values: Solid, LongDash, Dash and Dot.

opacity

Specifies the opacity of the legend border.

Type:

Number

Default Value: undefined

visible

Specifies whether the legend border is visible or not.

Type:

Boolean

Default Value: false

width

Specifies the width of the legend border in pixels.

Type:

Number

Default Value: 1