Density plot
Density plot shows where pairs of values concentrate, with contours that trace equal density. It replaces individual points with a field, so a large cloud stays readable.
See where cold drink sales cluster
Sixteen readings form two groups: cool days of 16 to 19 °C with 8 to 13 cups, and warm days of 26 to 29 °C with 28 to 33 cups. The contours draw those two peaks.
Density plot interactive example
Loading interactive example…
The live example needs a desktop screen. The result it produces is shown here, and the explanation and settings below work on any screen.
| Temperature C | Cups |
|---|---|
| 16 | 8 |
| 16 | 10 |
| 17 | 9 |
| 17 | 11 |
| 18 | 10 |
| 18 | 12 |
| 19 | 11 |
| 19 | 13 |
- Open the Design tab and expand Density to change the resolution and contours.
- Open the dropdown at the top of Properties. It shows
Density plot. ChooseScatter plotto see the individual points behind the field. - Choose
Density plotagain. In the Data tab, swap the columns in X coordinate and Y coordinate to turn the field on its side.
When to use
Use Density plot when a scatter would turn into a solid blot, such as thousands of readings. It shows where values concentrate but drops individual points, so use Scatter plot when each row matters.
Inputs
- Table
Accepts: Tables.
Accepts one connection on this port.
Settings
Density plot shows where points are concentrated rather than each individual point.
- X coordinate
Column on the horizontal axis. Individual rows and density plots need numbers, and grouped points can count other fields. Auto picks one with varied values.
- Y coordinate
Column on the vertical axis. Individual rows and density plots need numbers, and grouped points can count other fields. Auto picks one with varied values.
41 more settings
- Period size
Number of units in each period. Hours, minutes and seconds count fixed intervals from 1970-01-01 in the chart's time zone. Calendar periods follow local boundaries.
Default:
1- Source timezone
IANA time zone for timestamps without an offset, such as Europe/Copenhagen. Ambiguous local times need an explicit offset.
Default:
UTC- Chart timezone
IANA time zone used for grouping and display. Vista filters keep their own time zone.
Default:
UTC- Week starts
Day the week starts on.
Default:
MondayOptions: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
- Fiscal year starts
Month the fiscal year starts in. Sets quarter and year boundaries.
Default:
JanuaryOptions: January, February, March, April, May, June, July, August, September, October, November, December.
- Title
Title shown inside the chart. Leave empty to hide it.
- Title color
Color of the title.
- Title size (Advanced title)
Size of the title, in pixels.
Default:
24- Title alignment (plot)
Alignment of the title.
Default:
LeftOptions: Left, Center, Right.
- Title (Horizontal axis)
Title of the X axis. Leave empty to use the field names. An empty prefix or suffix uses the vertical axis formatting.
- Range
Sets fixed limits for the value axis.
Default:
AutoOptions: Auto, Min only, Max only, Min & max.
- Display units
Unit for value labels. Every tick is divided by it.
Default:
NoneOptions: None, Thousands (K), Millions (M), Billions (B).
- Prefix
Text before each value label.
- Suffix
Text after each value label.
- Label size (Advanced horizontal axis)
Size of the X axis labels, in pixels.
Default:
12- Label angle (Advanced horizontal axis)
Angle of the X axis labels. Auto turns them when they don't fit.
Default:
AutoOptions: Auto, 0°, 45°, 90°.
- Title size (Advanced horizontal axis)
Size of the X axis title, in pixels.
Default:
12- Title distance (Advanced horizontal axis)
Extra space between the X axis labels and the title, in pixels.
Default:
4- Title (Vertical axis)
Title of the Y axis. Leave empty to use the field names.
- Label size (Advanced vertical axis)
Size of the Y axis labels, in pixels.
Default:
12- Label angle (Advanced vertical axis)
Angle of the Y axis labels.
Default:
AutoOptions: Auto, 0°, 45°, 90°.
- Title size (Advanced vertical axis)
Size of the Y axis title, in pixels.
Default:
12- Title distance (Advanced vertical axis)
Extra space between the Y axis labels and the title, in pixels.
Default:
4- Contours
Shows or hides density contour lines. Each line traces equal density, and Resolution sets the detail of the density grid.
Default:
true- Contour levels
Number of contour lines (2–16).
Default:
8- Contour color
Color of the contour lines. Auto uses the plot background.
- Resolution
Detail of the density grid on each axis (16–128).
Default:
80- Show tooltip
Shows or hides values when you hover over a mark.
Default:
true- Tooltip
Text shown when you hover over a mark. Write it in the editor and insert values from Values.
- Values
Values you can insert into the text. Each row calculates a value from a source field or, in charts, shows a chart value, and can have its own number or date format.
- Tooltip dates
How dates are written in tooltips.
Default:
IsoOptions: Auto, Iso, Date, Datetime, Custom.
- Background
Card background color. Auto follows the theme.
- Plot padding
Space between the card edge and the chart, in pixels.
Default:
0- Axis frame
Shows or hides the axis lines around the plot.
Default:
true- Frame sides
Edges of the plot that get an axis line.
Default:
Bottom & leftOptions: Bottom, Left, Bottom & left, Full box.
- Axis titles
Shows or hides the titles on both axes.
Default:
true- Tick color
Color of the axis labels.
- Axis title color
Color of the axis titles. Auto matches the axis labels.
- Frame color
Color of the axis lines.
- Corner radius (px)
Corner radius in whole logical pixels.
Default:
0- Border width (px)
Border width in whole logical pixels.
Default:
0
Density plot FAQs
- Does Density plot need numeric columns?
- Yes. Its X and Y coordinates must be numeric, and it has no grouped mode. To plot text as numbers, convert it in Strata first.
- What does Resolution do in a density plot?
- It sets how detailed the density grid is. Find it in the Design tab under Density.
Chart your data. Build it in Vista.
Vista opens in your browser, with no account.