Skip to content

Heatmap Chart

Heatmap Chart is a chart where the positions of data points are determined by two categorical fields represented by the X-axis and Y-axis. The magnitude of the values is represented by the color of the rectangles at the corresponding positions, with darker colors indicating larger values.

Heatmaps reflect indicator changes and data magnitudes through color variations. Through the color intensity of the heatmap, you can intuitively and clearly see regional data distribution, density, and change trends, obtaining data focus without data analysis, making it easy to understand at a glance.

Advantages: Good-looking, easy to understand, data information is more intuitive and effective, can clearly present data distribution, frequency, or density in geographic space.

Disadvantages: The effect is too soft, not suitable for precise data expression, and not suitable for comparing the size of a single variable.

Settings

Data Settings

SettingDescription
Data SourceSelect the data source for the heatmap. The heatmap must be configured through aggregation query grouping in the data source.
Coordinate System TypeHeatmaps only support display in 2D Cartesian coordinate systems
Name FieldSelect the field returned by the data source. This field is used for the name display of heatmap labels, usually combined with the Hover Display menu
X-axis FieldSelect a field from the field list returned in the "Data Source" menu and set it as the chart's X-axis
Y-axis FieldSelect a field from the field list returned in the "Data Source" menu and set it as the chart's Y-axis

Since heatmaps use two categories (X and Y axes) to group and locate values, grouping and aggregation processing is generally required when selecting data sources. For example, when you need to view the distribution of order amounts and order status for each customer, we need to aggregate and sum the total order amount in the original data table (sales orders) and group by customer name and order status. This way, we can get a heatmap with status as the X-axis, customer name as the Y-axis, and order amount as the value.

Chart Settings

SettingDescription
X-axisSelect the X-axis where the heatmap is located. The axis can be added in the X-axis menu
Y-axisSelect the Y-axis where the heatmap is located. The axis can be added in the Y-axis menu
Color Allocation TypeConfigure the color effect of the graphics in the heatmap. Options: Allocate colors in the palette according to the chart, Allocate colors in the palette according to the data item.
When multiple charts are aggregated, you can choose to allocate by chart. For a single chart, you can choose to allocate by data item. The specific color value can be adjusted in the Style menu palette
Graphic StyleConfigure the style of the heatmap graphics.
Options: Hollow Circle, Dot, Rectangle, Rounded Rectangle, Triangle, Rhombus, Needle, Arrow, None
Graphic SizeConfigure the size of the value item graphics
Graphic Rotation AngleConfigure the rotation angle of the value item graphics

Label Settings

SettingDescription
Display LabelTurn on or off the display of labels on the heatmap
Display Content ExpressionCustom editing expression syntax is supported to realize complex scenario content display, with lower display priority than [Display Content]
Display ContentEditable label display content, does not support complex expression syntax except for prompt content, with higher display priority than [Display Content Expression]
PositionYou can choose the display position of the label on the heatmap graphic
Distance from GraphicSet the distance of the label from the graphic in the heatmap
Label RotationSet the rotation angle of the label
Text Offset XSet the distance of the label text from the X-axis
Text Offset YSet the distance of the label text from the Y-axis
ColorSet the color of the label text
Background ColorSet the background color of the label text. It needs to be used together with parameters such as line height, padding, width, and height in the text style to take effect
Text StyleSet the label text to italic or normal mode
Font WeightSet the label font weight. Options: Default, Bold, Very Bold, Light
FontSet the label font style. Options: sans-serif, serif, monospace, Arial, Courier NEW
Font SizeSet the label font size. The font size is not less than 12 and not more than 100
Horizontal AlignmentSet the horizontal alignment of the label text, including four methods: auto, left-aligned, centered, and right-aligned
Vertical AlignmentSet the vertical alignment of the label text, including four methods: auto, top, centered, and bottom
Line HeightSet the line height of the label text. It takes effect when Exceed Width Handling is set to wrap
PaddingSet the distance of the label text within the background box
WidthSet the maximum display width of the label text. It is generally used together with Exceed Width Handling for wrapping and other configurations
HeightSet the display height of the label text. It only affects the text background height and does not affect the display of the text itself
Exceed Width HandlingProcessing method after the label exceeds the maximum width, including two methods: wrap and truncate with ellipsis. If set to none, the maximum width will not take effect
Stroke WidthSet the stroke width of the label background image. It takes effect only after setting the stroke color
Stroke ColorSet the stroke color value of the label background
Stroke RadiusSet the stroke radius angle of the label background
Shadow ColorSet the shadow color of the label background. It takes effect only after setting the label background color and shadow size
Shadow SizeSet the shadow size of the label background
Shadow Horizontal OffsetSet the horizontal offset distance of the label background shadow
Shadow Vertical OffsetSet the vertical offset distance of the label background shadow

Line Style

In heatmaps, line style refers to the style of heatmap blocks.

SettingDescription
ColorHeatmaps currently do not support custom colors
Border ColorSet the color effect of the heatmap block borders
Stroke TypeConfigure the stroke type of the heatmap blocks.
Options: Solid Line, Dashed Line, Dotted Line
Stroke WidthSet the stroke width of the heatmap blocks
Stroke RadiusSet the stroke radius angle of the heatmap blocks
Shadow ColorSet the shadow color of the heatmap blocks
ShadowSet the shadow size of the heatmap blocks
Shadow Horizontal OffsetSet the horizontal position of the heatmap blocks' shadows
Shadow Vertical OffsetSet the vertical position of the heatmap blocks' shadows
OpacitySet the opacity of the heatmap blocks, with opacity values ranging from 0 to 1

Label Layout

SettingDescription
Hide Overlapping LabelsWhen enabled, labels that overlap in content will be hidden
Overlapping Offset DirectionWhen labels overlap, you can choose the direction of label displacement, with options for horizontal or vertical displacement

Highlight Settings

SettingDescription
Disable HighlightAfter disabling highlight, the label will no longer be highlighted when the mouse moves to the label position
Highlight BehaviorSet the interactive style of highlight display
Fade RangeSet the selection range for interactive interface fade-out during highlight, providing three methods: fade-out coordinate system, fade-out chart, or global fade-out

Events

SettingDescription
Non-clickableAfter enabling, all label data in the chart cannot be clicked. After closing, you can set the corresponding data click interaction event
Call Automation After ClickYou can implement related data label click interaction events by selecting the corresponding automation, such as opening the corresponding data form details or opening other web links after clicking
Call Automation After Double ClickThe function is the same as click call, but the interaction is triggered by double-click instead of single-click. Click and double-click events can be set at the same time