Distribution
This is the official documentation of the @forestadmin/agent
Node.js agent.

Distribution Charts display a pie and should return a plain object.
agent.addChart('booksByAuthorCountry', async (context, resultBuilder) => {
// [...]
return resultBuilder.distribution({
validated: 100,
rejected: 100,
to_validate: 100,
});
});
Last updated
Was this helpful?