Skip to main content

Widgets

Widgets are visual components that display data as charts or tables on your dashboard. They appear below the Stats section and provide richer data visualization capabilities.

Go to Areas, select an Area, then open the Dashboard tab.

Creating a widget

  1. In the Dashboard tab, locate the Dashboard Widgets section
  2. Click Add New Widget
  3. Set the basic settings (Title, Collection, Width)
  4. Select the Widget Type: Chart or Table
  5. Set the type-specific settings
  6. Optionally add Sorting, Where Clause, or Having Clause
  7. Click Done to add the widget

Common settings

These settings apply to both Chart and Table widgets.

SettingDescription
TitleDisplay name shown in the widget header.
CollectionThe collection to query data from.
Widget WidthLayout width: Full Width (1/1), Half Width (1/2), or One Third (1/3).
DescriptionOptional explanation of what the widget displays.
Widget TypeToggle between Chart and Table visualization modes.
Access VisibilityRestrict visibility to specific auth collections and roles.

Access visibility

You can restrict who can see this specific widget (chart or table) on the dashboard. This is useful for showing different data visualizations to different user roles.

  1. Click the Customize Access Control toggle to turn it on.
  2. Select the Auth Collection (for example, Users).
  3. Select the Roles that are allowed to see this widget.

Chart widgets

Chart widgets visualize data graphically. Set the data source, chart type, axis mappings, and display options.

Query settings

SettingDescription
Query SourceQuery Builder for visual configuration, or Raw SQL Query for custom SQL.
Chart TypeThe visualization type: Area, Bar, Line, Pie / Donut, Radar, or Radial.
AggregationAggregation function: Count, Sum, Average, Minimum, Maximum. Only for Query Builder.
Raw SQL QueryCustom SQL query. Available when Query Source is Raw SQL.

Axis configuration

SettingDescription
X-axis fieldThe field used for the horizontal axis (or category/slice for Pie charts).
X-axis LabelDisplay label for the X-axis (or center label for Pie charts).
Y-axis FieldsOne or more fields for the vertical axis. Each field can have a custom label and color. Not shown when Aggregation is Count.

Y-axis field configuration

When using non-Count aggregations, set each Y-axis field:

PropertyDescription
FieldThe collection field to aggregate.
LabelDisplay name in the legend and tooltips.
ColorHex color code for this data series (for example, #5200ff).

Display settings

SettingDescription
VariantChart style variant. Options vary by chart type (see Variants section below).
LayoutBar chart orientation: Horizontal or Vertical. Only for Bar charts.
LegendShow or Hide the chart legend.
Tooltip IndicatorStyle of the tooltip marker: Dot, Line, or Dashed.
Interactive TargetFor Pie Interactive variant: highlight Minimum Value or Maximum Value.

Chart variants

Each chart type supports different variants:

Chart TypeAvailable Variants
AreaDefault, Stacked, Stacked Expanded, Step, Linear, Dot
BarDefault, Stacked, Label
LineDefault, Dot, Step, Linear, Label
Pie / DonutDefault, Label, Label List, Stacked, Donut, Donut with Text, Donut Active, Interactive
RadarDefault, Dots, Lines, Grid (Circle), Grid (Filled), Grid (None)
RadialDefault, Label, Grid (Radial lines), Text (Donut), Shape (Gauge), Stacked

Table widgets

Table widgets display data in a tabular format with selectable columns.

Query builder mode

When using Query Builder:

SettingDescription
Query SourceSet to Query Builder.
ColumnsSelect which collection fields appear as table columns. Check the fields you want to display.

Raw SQL mode

When using Raw SQL:

SettingDescription
Query SourceSet to Raw SQL Query.
Raw SQL QueryWrite a SELECT statement. Columns are auto-detected from the query.

For Raw SQL tables, each detected column can be configured:

PropertyDescription
Field NameThe column name from the query (read-only).
LabelDisplay header for the column.
TypeData type: String, Number, Boolean, Date, or Enum.
Is ArrayWhether the field contains an array of values.
AliasColumn alias if specified in the query (read-only).

Advanced options

These options are available for both Chart and Table widgets when using Query Builder.

Limit and offset

SettingDescription
LimitMaximum number of records to return. Leave empty for no limit.
OffsetNumber of records to skip from the beginning. Leave empty for no offset.

Sorting

Enable custom sorting to control the order of results:

  1. Click the Sorting toggle to enable it.
  2. Click Add Sort Condition.
  3. For each condition, specify:
    • Field: The field to sort by
    • Order: Ascending or Descending

Multiple sort conditions are applied in order.

Where clause

Filter records before they are processed:

  1. Click the Where Clause toggle to enable it.
  2. Click Add Condition.
FieldDescription
RequiredCheck to make this condition mandatory.
ConjunctionWHERE (first condition), AND, or OR.
FieldThe field to filter on.
Operatoris equal to, is not equal to, is greater than, is less than, is greater than or equal to, is less than or equal to, contains, does not contain, starts with, ends with, is in, is not in.
ValueThe value to compare against. Supports static Default values, Session Fields , and Dashboard Filters .

Having clause

Filter results after aggregation:

  1. Click the Having Clause toggle to enable it.
  2. Click Add Condition.
FieldDescription
ConjunctionHAVING (first condition) or AND.
AggregatorThe aggregation function (Count, Sum, Avg, Min, Max).
FieldThe field to aggregate.
OperatorComparison operator (same as Where Clause).
ValueThe threshold value. Supports static values, Session Fields , and Dashboard Filters .
note

Where and Having clauses are hidden when using Raw SQL Query source. Include filtering logic directly in your SQL statement instead.


Examples

Order status distribution (pie chart)

Show the breakdown of orders by status:

  • Title: Order Status Distribution
  • Collection: Customer Orders
  • Widget Type: Chart
  • Chart Type: Pie / Donut
  • Variant: Donut with Text
  • X-axis field: status
  • X-axis Label: Orders
  • Aggregation: Count

Recent stock movements (table)

Display the latest inventory transactions:

  • Title: Recent Stock Movements
  • Collection: Stock Movements
  • Widget Type: Table
  • Query Source: Query Builder
  • Columns: date, item_name, quantity, movement_type
  • Sorting: date Descending
  • Limit: 10

Revenue trend (line chart)

Track revenue over time:

  • Title: Monthly Revenue
  • Collection: Orders
  • Widget Type: Chart
  • Chart Type: Line
  • Variant: Default
  • X-axis field: created_at
  • X-axis Label: Month
  • Aggregation: Sum
  • Y-axis Fields:
    • Field: total_amount, Label: Revenue, Color: #5200ff
  • Legend: Show

See these pages for related dashboard configuration: