Last updated 8 months ago
This is the official documentation of the @forestadmin/agent Node.js agent.
@forestadmin/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, }); });