ColorMapping

12 Sep 20251 minute to read

Sets and gets the options to customize the color-mapping in treemap.

Properties

color string|string[]

Sets and gets the color for the color-mapping in treemap.

Defaults to null

from number

Sets and gets the value from which the range of color mapping starts.

Defaults to null

label string

Sets and gets the label text for the legend when it is rendered based on color mapping.

Defaults to null

maxOpacity number

Sets and gets the maximum opacity for the color-mapping in the treemap.

Defaults to null

minOpacity number

Sets and gets the minimum opacity for the color-mapping in the treemap.

Defaults to null

showLegend boolean

Enables or disables the visibility of the legend for color mapping in the treemap.

Defaults to true

to number

Sets and gets the value to which the range of color mapping ends.

Defaults to null

value string|number

Sets and gets the value for the color-mapping from the data source.

Defaults to null