Time-based
Last updated
Last updated
This is the official documentation of the @forestadmin/agent
Node.js agent.
Time-based charts are very similar to distribution charts, the only differences being that:
An additional parameter tells the frontend if the dates should be displayed by Day
, Week
, Month
, or Year
,
The returned data is an array of objects with date
as a Date
and value
as a Number
.
If you want to add several lines to the same chart, you can use the multipleTimeBased
method: