Links

Distribution

Distribution Chart example
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,
});
});