# Objective

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

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

Objective Charts are very similar to Value Charts, the only difference being that two numbers should be provided to the `resultBuilder`: the value and the objective.

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

  return resultBuilder.objective(235, 300);
});
```
