# Distribution

{% hint style="success" %}
This is the official documentation of the `@forestadmin/agent` Node.js agent.
{% endhint %}

![Distribution Chart example](https://3861847666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UN5oBJhgzLadOqi7jx6%2Fuploads%2Fgit-blob-3771c1d0efa71d081b8e6a6fbb2090e619d23a91%2Fchart-distribution.png?alt=media)

Distribution Charts display a pie and should return a plain object.

```javascript
agent.addChart('booksByAuthorCountry', async (context, resultBuilder) => {
  // [...]

  return resultBuilder.distribution({
    validated: 100,
    rejected: 100,
    to_validate: 100,
  });
});
```
