Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apache/echarts/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Heatmap charts display data in a matrix format where individual values are represented as colors. The intensity of the color represents the magnitude of the value, making it easy to identify patterns and outliers at a glance.When to Use
Use heatmap charts when you need to:- Visualize matrix data with two categorical dimensions
- Show correlations or relationships between variables
- Display temporal patterns like activity over days and hours
- Compare values across multiple categories simultaneously
- Identify hot spots in geographic or spatial data
- Analyze calendar data with time-based patterns
Basic Configuration
Series Type
Heatmap charts support multiple coordinate systems:Data Format
Heatmap data is typically an array of coordinates with values:Complete Example
Cartesian2D Heatmap
Coordinate Systems
Heatmap supports four coordinate systems (HeatmapSeries.ts:74):1. Cartesian2D (Default)
Standard grid-based coordinate system with x and y axes.coordinateSystem: 'cartesian2d' (HeatmapSeries.ts:109)
2. Geo Coordinate System
For geographic heatmaps with blur effect.3. Calendar Coordinate System
Perfect for time-series data visualization.4. Matrix Coordinate System
For specialized matrix visualizations.Key Options (Cartesian2D)
itemStyle
Defines the visual style of heatmap cells.emphasis
Defines the hover state appearance.Key Options (Geo Coordinate)
These options are specific to geographic heatmaps (HeatmapSeries.ts:77-80):blurSize
Controls the blur radius of each data point.30 (HeatmapSeries.ts:122)
pointSize
Controls the size of each data point before blurring.20 (HeatmapSeries.ts:124)
minOpacity / maxOpacity
Controls the opacity range of the heatmap.Data Item Options
HeatmapDataItemOption
Each data item can have individual styling:Working with Visual Map
Heatmaps work best with thevisualMap component to map values to colors:
Dependencies
Heatmap charts depend on the coordinate system components (HeatmapSeries.ts:91):Select State
Default select state styling (HeatmapSeries.ts:130-134):Performance Considerations
- For large datasets (>10,000 points), consider aggregating data
- Use
progressiverendering for better performance - Geo heatmaps with blur effects are more computationally expensive
- Disable labels (
label.show: false) for dense heatmaps
Related Charts
- Scatter Chart - Alternative for showing individual data points
- Tree Map - Hierarchical alternative to matrix heatmaps
- Calendar Chart - Specialized for temporal data