Heatmap Charts
A heatmap is a graphical representation of data where individual values in a matrix are represented as colors.Basic Heatmap
Heatmap Configuration
Key configuration options from~/workspace/source/ts/Series/Heatmap/HeatmapSeriesDefaults.ts:53-346:
number
default:"0"
The border width for each heatmap item.
number
default:"0"
The border radius for each heatmap item.
string
default:"#f7f7f7"
The color applied to null points.
number
default:"1"
The column size - how many X axis units each column in the heatmap should span.
number
default:"1"
The row size - how many Y axis units each heatmap row should span.
boolean
default:"false"
Make the heatmap render its data points as an interpolated image.
Color Axis Configuration
Heatmaps use a color axis to map values to colors:Large Heatmap with Canvas Renderer
For performance with large datasets:Treemap Charts
A treemap displays hierarchical data using nested rectangles. The size and color of rectangles represent different dimensions.Basic Treemap
Treemap Configuration
Key configuration options from~/workspace/source/ts/Series/Treemap/TreemapSeriesDefaults.ts:47-705:
string
default:"'sliceAndDice'"
Algorithm for positioning and sizing points. Options: ‘sliceAndDice’, ‘stripes’, ‘squarified’, ‘strip’.
boolean
default:"false"
When enabled, users can click on a parent to zoom in on its children.
string
default:"'vertical'"
Direction the layout algorithm starts drawing. Options: ‘vertical’, ‘horizontal’.
boolean
default:"false"
Make the treemap alternate drawing direction between levels.
number
default:"1"
The width of the border surrounding each tree map item.
number
default:"0.15"
The opacity of grouped points in treemap.
Treemap with Levels
Style different levels differently:Color Variation
Automatically vary colors between parent and children:Interactive Treemap with Drilldown
Use Cases
Heatmap
- Correlation matrices
- Activity patterns over time
- Geographic heat maps
- Performance metrics
Treemap
- Hierarchical data
- Disk space usage
- Budget allocation
- Market capitalization
Data Formats
Heatmap Data
Heatmap data uses [x, y, value] format:Treemap Data
Treemap data uses parent-child relationships:Both heatmaps and treemaps require their respective modules to be loaded:
modules/heatmap.js and modules/treemap.js.