A variation around the HeatMap component. Well suited for large data sets as it does not impact DOM tree depth, however you'll lose the isomorphic ability and transitions.
The responsive alternative of this component is
ResponsiveHeatMapCanvas
.
Chart data.
Optional formatter for values.
Chart width.
Chart height.
'Depends on device'
Adjust pixel ratio, useful for HiDPI screens.
Chart margin.
false
Force square cells (width = height), please note that padding is ignored.
0
0
0
0
false
Optionally make the size of the cells vary depending on their value.
Define style for common elements such as labels, axes…
The quantize
color scale maps colors from min to max value
to a discrete color range, dividing the domain into uniform segments.
You can either use a predefined color scheme or pass a
custom array of colors.
If omitted, will use the min value from the data.
If omitted, will use the max value from the data.
7
Customize the number of steps you want to use for a quantize
scale
unless you specify a custom array of colors, in which case the number of
steps is equal to the number of colors you defined.
'#000000'
#555555
Color to use for cells not having a value.
1
1
0.15
0
Cell border radius, when using rect
.
0
#000000
true
Enable/disable labels.
'formattedValue'
Define what to use as a label.
false
Enable/disable x grid.
false
Enable/disable y grid.
Top axis configuration.
Right axis configuration.
Bottom axis configuration.
Left axis configuration.
Please note that legends are ignored when using a custom function for colors
.
'grid'
, 'axes'
, 'cells'
, 'legends'
, 'annotations'
]Defines the order of layers and add custom layers, please use the appropriate variant for custom layers.
'rect'
Cell component, the API does not support CellComponent
.
'rect'
Cell renderer for canvas implementation.
true
Enable/disable interactivity.
Custom tooltip component.
'rowColumn'
Defines hover behavior.
Annotations for nodes.
Main element role attribute.
Main element aria-label.
Main element aria-labelledby.
Main element aria-describedby.
true
Enable/disable transitions.
'gentle'
Motion config for react-spring, either a preset or a custom configuration.