Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
baseColor | String | '#C2EEFF' | ||||||
Sets or gets the default color used when the Code example
Set the
Get the
Try it: baseColor is set to '#52CBFF'
|
||||||||
colorRanges | Array | [ { color: '#aa9988', min: 0, max: 10 }, { color: '#ccbbcc', min: 11, max: 50 }, { color: '#000', min: 50, max: 100 } ]; | ||||||
Sets or gets the color ranges used when the Code examples
Set the
Get the
|
||||||||
colorRange | Number | 100 | ||||||
Sets or gets the range in which the base colors can vary. The value is expected to be from 0 to 255. Code example
Set the
Get the
Try it: colorRange is set to 100
|
||||||||
colorMode | String | 'parent' | ||||||
Sets or gets the sectors rendering behavior. There are three different types of color mode:
Code example
Set the
Get the
Try it: colorMode is set to 'autoColors'
|
||||||||
displayMember | String | "" | ||||||
Sets or gets the Code example
Set the
Get the
Try it: displayMember is set to label
|
||||||||
height | Number/String | 600 | ||||||
Sets or gets the jqxTreeMap's height. Code examples
Set the
Get the
Try it: height is set to 300
|
||||||||
hoverEnabled | Boolean | false | ||||||
Sets or gets whether a sector will be outlined when the mouse cursor is over it. Code examples
Set the
Get the
Try it: hoverEnabled is set to true
|
||||||||
headerHeight | Number | 25 | ||||||
Sets or gets the height of the parent sector's header. Code examples
Set the
Get the
Try it: headerHeight is set to 30
|
||||||||
legendLabel | String | "Legend" | ||||||
Sets or gets the Legend's label. Code examples
Set the
Get the
|
||||||||
legendPosition | Object | { x: 0, y: -5 } | ||||||
Sets or gets the Legend's position. The Code example
Set the
Get the
|
||||||||
legendScaleCallback | Object | null | ||||||
Sets or gets a callback function which formats the values displayed in the jqxTreeMap's Legend. Code examples
Set the
Get the
|
||||||||
renderCallbacks | Object | null | ||||||
Sets or gets callback function(s) which enable you to customize the rendering of any sector in the jqxTreeMap. To define a callback function for all sectors, use the "*" : function(sectorHtmlElement, sectorData) syntax. To define a callback function for a specific element, use its Code example
Set the
Get the
|
||||||||
selectionEnabled | Boolean | true | ||||||
Sets or gets whether a sector will be outlined when it is clicked.. Code examples
Set the
Get the
Try it: selectionEnabled is set to false
|
||||||||
showLegend | Boolean | true | ||||||
Determines whether the jqxTreeMap's Legend is displayed. Legend is possible to be displayed when the Code examples
Set the
Get the
Try it: showLegend is set to false
|
||||||||
source | Object | null | ||||||
Specifies the jqxTreeMap's data source. Use this property to populate the jqxTreeMap. Code examples
Initialize a jqxTreeMap with the
Each item in the data source is required to have label and value fields. To create nested elements, you need to set the parent field to point to the label of another item. The data field enables you to store additional data associated to each treemap sector. By setting the color field you can determine the sector's background color.
In order to populate the jqxTreeMap through jqxDataAdapter, you need to set the "source" property of jqxTreeMap to point to an instance of jqxDataAdapter. The label and value fields of each treemap sector are determined by the displayMember and valueMember properties.
Initialize jqxTreeMap through jqxDataAdapter
Try it: source is set to data
|
||||||||
theme | String | '' | ||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||
valueMember | String | "" | ||||||
Sets or gets the Code example
Set the
Get the
Try it: valueMember is set to value
|
||||||||
width | Number/String | 600 | ||||||
Sets or gets the jqxTreeMap's width. Code examples
Set the
Get the
Try it: width is set to 400
|
||||||||
Events |
||||||||
bindingComplete | Event | |||||||
This event is triggered when the jqxTreeMap's Code examples
Bind to the
|
||||||||
Methods |
||||||||
destroy | Method | |||||||
Destroy the jqxTreeMap widget. The destroy method removes the jqxTreeMap widget from the web page.
None Code example
Invoke the
Try it: destroy the jqxTreeMap.
|
||||||||
render | Method | |||||||
Renders the jqxTreeMap widget.
None Code example
Invoke the
Try it: renders the jqxTreeMap.
|