Heatmaps and treemaps are specialized chart types for displaying complex data structures - heatmaps for matrix data and treemaps for hierarchical data.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/highcharts/highcharts/llms.txt
Use this file to discover all available pages before exploring further.
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:
The border width for each heatmap item.
The border radius for each heatmap item.
The color applied to null points.
The column size - how many X axis units each column in the heatmap should span.
The row size - how many Y axis units each heatmap row should span.
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:
Algorithm for positioning and sizing points. Options: ‘sliceAndDice’, ‘stripes’, ‘squarified’, ‘strip’.
When enabled, users can click on a parent to zoom in on its children.
Direction the layout algorithm starts drawing. Options: ‘vertical’, ‘horizontal’.
Make the treemap alternate drawing direction between levels.
The width of the border surrounding each tree map item.
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.