Charts

A well-known adage says, "a picture is worth a thousand words": charts help people better understand and remember information.

Forest Admin dashboards and analytics are meant to answer that need.

From your admin panel

Charts can be configured from the interface, without the need to write any code.

This is documented in the User Guide ↗

From your agent

Sometimes, chart data are closely tied to your business. Forest Admin allows you to code how the data fueling any given chart is computed.

This is done in three steps:

  • Implement the chart from the agent code.

  • Either

    • Create a new chart on a Dashboard, and choose "API" as the data source.

    • Or create a new chart in the Analytics tab of a collection.

  • Enter the URL of the chart you just created (/forest/_charts/<chartName> or /forest/_charts/<collectionName>/<chartName>).

Note that, when defining a chart from your agent:

  • The type of chart defined in your agent must match your selection when adding it to a dashboard or record.

  • The name of the chart must be URL-safe.

Relation to smart charts

Smart charts allow the implementation of charts that are not supported natively (density maps, cohorts, ...).

Coding a chart handler from your agent, on the other hand, gives your freedom in how the data powering a native chart is computed.

Last updated

Revision created on 5/31/2023