heatmap
Configuration Structure
heatmap: {}plotOptions
radius
2Radius of the rectangle inside heatmap
enableShades
trueEnable different shades of color depending on the value
shadeIntensity
0.5The intensity of the shades generated for each value
Accepts from 0 to 1
reverseNegativeShade
trueWhen enabled, it will reverse the shades for negatives but keep the positive shades as it is now. An example of such use-case would be in a profit/loss chart where darker reds mean larger losses, darker greens mean larger gains.
distributed
falseWhen turned on, each row in a heatmap will have it's own lowest and highest range and colors will be shaded for each series. Default value is turned off.
useFillColorAsStroke
falseIf turned on, the stroke/border around the heatmap cell has the same color as the cell color.
colorScale
ranges
from
Value indicating range's upper limit
to
Value indicating range's lower limit
color
Background color to fill the range with.
foreColor
Fore Color of the text if data-labels is enabled.
name
If a name is provided, it will be used in the legend. If it is not provided, the text falls back to {from} - {to}
inverse
In a multiple series heatmap, flip the color-scale to fill the heatmaps vertically instead of horizontally.
min
Specify the lower range for heatmap color calculation.
max
Specify the higher range for heatmap color calculation.
gradientLegend
Replace the default categorical heatmap legend with a continuous color gradient strip and a hover indicator arrow that tracks the currently hovered cell's value along the spectrum. Follows legend.position (top / right / bottom / left); the arrow flips to point at the strip from the chart-facing side.
When colorScale.ranges is configured, the strip renders the configured colors as hard bands and hovering a band highlights the cells in that range. Otherwise the stops are sampled from the same shade function the cells use, producing a smooth gradient that matches the shaded cells.
enabled
falseTurn the gradient legend on.
Available Options:
- false (default)
- true
width
'70%'Strip length for horizontal placements (top / bottom). Accepts a number (pixels) or a percentage string resolved against the chart's SVG width.
height
'70%'Strip length for vertical placements (left / right). Accepts a number (pixels) or a percentage string resolved against the chart's SVG height.
thickness
12Strip thickness (short axis) in pixels.
align
'center'Alignment of the strip within the legend area.
Available Options:
- For
top/bottomplacement:'start'= left,'center'(default),'end'= right - For
left/rightplacement:'start'= top,'center'(default),'end'= bottom
stops
16Number of color stops sampled from the shade function when no explicit colorScale.ranges are provided.
showLabels
trueShow min/max labels at the ends of the strip.
Available Options:
- true (default)
- false
showHoverValue
trueShow a value tooltip next to the arrow when hovering a cell.
Available Options:
- true (default)
- false
labelStyle
fontSize
'11px'Font size for the min/max strip labels.
fontFamily
undefinedFont family for the min/max strip labels. Defaults to chart.fontFamily.
colors
undefinedText color for the min/max strip labels. Defaults to chart.foreColor.
arrow
size
8Arrow tip size in pixels.
color
undefinedArrow fill color. Defaults to chart.foreColor.
formatter
undefinedFormatter applied to the min/max labels and the hover value tooltip. Receives the numeric value and returns the display string.
formatter: function (value) {
return value.toFixed(1) + '°C'
}