TreeMapChart


Props
Name
Type
Default Value
Required
Description
data
ISingleTreeMapData | IMultiTreeMapData
{}
yes
The chart data of TreeMap
format
string
'number'
no
The formate type of each value
unit
string
no
The unit of each value
multi
boolean
false
no
If true, TreeMap will render a tabs with multiple charts
chartLabelFormat
string
'{point.name}<br/>{point.value}'
no
The Highcharts label format of the TreeMap
unitLabel
boolean
''
no
The label to explain the unit of each value, only shows if multi is true
groups
string[]
no
To show group tabs
colors
string | string[]
'blue_to_lightBlue'
no
The colors for TreeMap
height
number
Multi = 450
Single = 400
no
The height of TreeMap
Usage Example
TBD
Data structure
Key
Type
Required
Description
series
HightCharts series data
yes
The chart series data
total
number | string
yes
The total info
Key
Type
Required
Description
total
number | string
yes
The total info
title
string
no
The title of the data, will be shown upon the tree map chart
maps
Array< { name: string } & ISingleTreeMapData >
yes
The charts data, the name will be displayed on the tabs
Example of data structure
Actions
VIZ.CHART.TREEMAP.SELECT_GROUP
Name
Type
Description
type
string
The action type
group
string
The selected group name
callback
(data: any, group: string): void
To update the viz with new data
Last updated
Was this helpful?