jQWidgets jqxTreeMap colorMode Property
The colorMode property is used for setting or getting the rendering behavior of the sector of the specified jqxTreeMap. This property accepts three possible values that are illustrated below:
- parent: This mode is used for a child sector inherits the color from its parent sector. Here color varies depending on the child’s value and the colorRange property.
- autoColors: This mode is for automatic color generation depending on the baseColor, colorRange property, and the value.
- rangeColors: For this mode, the user can set an array of color ranges. Here each color range is having properties such as min, max, and color.
For setting the colorMode property:
For getting the colorMode property:
var colorMode = $('#jqxTreeMap').jqxTreeMap('colorMode');
Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.
<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
Example: The below example illustrates the jQWidgets jqxTreeMap colorMode property. In the below example, the value for the colorMode property has been set to ‘colorMode’.