Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grid - Charts

Display aggregated grid data as pie, bar and doughnut charts, scoped to all or displayed records.

GridMate Charts feature allows you to display aggregated data from your grid in a graphical format. It helps users understand their filtered data at a glance. The Chart feature is available for GridMate Smart Grids.

Enable Charts

To enable the Charts option:

1

Open the page

Edit the Lightning page in the App Builder.

2

Select the grid

Select the Grid.

3

Find the Charts property

Scroll down until you see the "Charts" property.

4

Paste the configuration

Paste in your charts configuration.

Charts Configuration

The Charts property accepts a JSON array, where each object in the array defines a single chart. You can configure as many charts as you'd like.

Each chart object is built from a few required fields that describe what to display, plus optional fields for labeling and fine-tuning the visual output.

Required fields

  • title — The heading displayed above the chart. This is what users see, so make it descriptive (e.g., "Revenue by Stage" rather than "Chart 1").

  • chartType — The visualization style. Supported values are "pie", "bar", and "doughnut". The chart type determines the default orientation and shape; see the options field below for variations like horizontal bars.

  • groupByField — The Salesforce field API name used to group records into chart segments or categories. Each unique value in this field becomes a slice (pie/doughnut) or a bar. For example, using "StageName" on Opportunities produces one segment per stage.

  • aggregateField — The Salesforce field API name whose values are aggregated within each group. This is the numeric or currency field that determines the size of each segment.

  • aggregateOp — The aggregation operation applied to aggregateField. Common values include "SUM", "COUNT", "AVG", "MIN", and "MAX".

  • aggregateType — The data type of the aggregated value, used for formatting labels and tooltips. Use "currency" for monetary values, "number" for plain numerics, and "percent" for percentages.

Optional fields

  • datasetLabel — A label shown in the chart's legend or tooltip describing the dataset (e.g., "Sum of Amount"). Useful when the title alone doesn't make the metric explicit.

  • options — A nested object passed through to the underlying chart renderer for advanced customization. The most common use is flipping a bar chart's orientation:

Setting indexAxis to "y" produces a horizontal bar chart; the default "x" produces a vertical one.

Below is a configuration example👇.

Charts Setup

Below is a step by step tutorial to configure the Grid - Charts 👇.

Charts Scope

Each chart has a Scope that decides which records it aggregates. Scope is available on Field Set, List View, Related List and User Grids.

Scope
JSON value
The chart aggregates

All records (default)

all

The grid's full filtered query, on the server, beyond pagination and the row limit. A page of 50 rows still charts every matching record.

Displayed records

displayed

Only the rows currently loaded in the grid, with their filters, pagination or scroll position, and interactive filters. Group and summary rows are left out. An empty grid gives an empty chart.

Existing charts have no scope and behave as All records.

  1. Open the User Grid record and click Config. Wiz.

  2. Click the Charts tab.

  3. Fill in the chart, then pick a Scope: All records or Displayed records.

  4. Click Add Chart. The scope appears as a column in the saved charts list.

  5. Click Save.

On Field Set, List View and Related List grids, add scope to each chart in the Charts property:

A chart loads its data when the Charts tab opens. After you change the page, a filter or the search, close and reopen the Grid Explorer to refresh it.

Next steps

Charts Scope Demo

After configuring a chart with each Scope on your grid, you're ready to compare them. The video below provides a step-by-step tutorial on how to use the Grid - Charts Scope 👇

Grid - Charts Scope

Last updated

Was this helpful?