Time-based
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
, orYear
,The returned data is an array of objects with
date
as aDate
andvalue
as aNumber
.
If you want to add several lines to the same chart, you can use the multipleTimeBased
method:
Last updated