Class: Treemap

Treemap


new Treemap()

Source:

Extends

Methods


shape( [shape])

selects a shape type. Available shapes depends on the chart type. If shape is not specified, returns the current shape setting.
Parameters:
Name Type Argument Description
shape string <optional>
Inherited From:
Source:
Returns:
Type
shape | ShapeMixin
Example
line.shape('area')
parCoords.shape('scatter-matrix')
treemap.shape('pack')

sortByValue( [sortByValue])

If is true or a comparator string(natural, ascending, descending), sort nodes according to their values. If sortByValue is not specified, returns the current sortByValue setting.
Parameters:
Name Type Argument Default Description
sortByValue boolean | string <optional>
false (false|natural|ascending|descending)
Inherited From:
Source:
Returns:
Type
sortByValue | SortMixin
Example
bar.sortByValue('ascending') //sort bars in ascending order.