Important version information!

You are browsing a class reference for Version 2 of the JavaScript Charts. If you are using Version 3 (current), please click here.

ValueLegend

This class displays a color range used by areas (in case you set values for your areas).

Properties

PropertyTypeDefaultDescription
borderAlphaNumber1Border opacity.
borderColorString#FFFFFFBorder color.
borderThicknessNumber1Border thickness.
bottomNumber10Distance from bottom of the map container to the value legend.
colorString#000000Text color.
fontSizeNumber11Font size.
heightNumber12Height of value legend.
leftNumber10Distance from left of the map container to the value legend.
maxValueNumberValue, which will be displayed on the right of the legend (will display max value in case not set any).
minValueNumber0Value which will be displayed on the left of a legend.
NumberDistance from right of the map container to the value legend.
showAsGradientBooleanfalseSpecifies if color range should be displayed as a gradient or as a set of rectangles, each with different color.
topNumberDistance from top of the map container to the value legend.
widthNumber200Width of value legend.

Methods

ValueLegend class does not have any methods.

Events

ValueLegend class does not have any events.