- The Dashboard tab, a shared dashboard visible to your team.
- The Analytics tab of a specific record, charts scoped to a single record’s data.
Chart types
Forest supports six chart types:For Repartition charts, only the top 5 categories are shown individually. All others are grouped into a 6th “Other” category.
Creating a chart
- Enable Layout Editor mode by clicking the toggle in the top navigation.
- Navigate to the Dashboard tab (or the Analytics tab of a record).
- Click Add a new chart.
- Enter a name and optional description.
- Select a chart type.
- Configure the chart data source (see below).
- Save and exit Layout Editor mode.
Simple mode (UI-based)
In Simple mode, configure your chart by selecting:- Collection, which data source to query.
- Aggregate function,
count,sum,average,min,max. - Group by field, the dimension to group results by.
- Time frame, for time-based charts: day, week, month, or year.
- Filters, optional conditions to restrict which records are included.
Query mode (SQL)
For advanced analytics, use Query mode to write custom SQL directly. Each chart type expects specific column names in the query result:
Example, Single value:
Record-specific analytics
Charts can also be scoped to a single record. When placed in the Analytics tab of a collection:- In Query mode, use
{{recordId}}to inject the current record’s ID into your SQL query. - In API mode, the
record_idis automatically passed in the HTTP body.
Managing charts
In Layout Editor mode:- Move charts by dragging them on the dashboard.
- Resize charts to fit your layout.
- Edit a chart’s configuration by clicking the pencil icon.
- Delete a chart by clicking the trash icon.