Skip to content

Generic Chart

A Cartesian chart — bars, lines, columns, scatter and more, one data source per series.

Chart widgets · widget type generic-chart · binds through a data source per series

Related: Pie Chart · Data Table · Progress Bar

Options

Option Values Default Description
Series A list of series Empty Each series has its own type, data source and field mapping
Chart Type Bar · Line · Column · Scatter · Range · Marker line · Range marker · Swimlane — What the series draws
Data Source An expression, e.g. {$data.sales} — The records for that series
X Field / Y Field Record fields — What is plotted. Range and marker types add X0/X1/Y0/Y1 fields for their bounds
Name / Legend Entry Text — How the series is labelled in the legend
Stacked / Stack Name On · Off, plus a group name Off Stacks series that share a stack name
Axes Per-axis settings — Min, max, tick and label spacing, orientation, secondary X and Y axes
Color Map A named map, or automatic Automatic How series colours are chosen; distant colours spreads them further apart
Legend Placement, alignment, visibility Shown The legend block
Tooltip Text or element, with a template Enabled What is shown on hover
Visible Expression An expression Empty Hides a series when it resolves false
Box Style Sizing and spacing — The box around the chart

Notes

  • Each series carries its own data source, so a chart can combine records from more than one query
  • Set the same Stack Name on several series to stack them; leave it empty to draw them side by side
  • For part-of-whole breakdowns, use Pie Chart