# Objective

{% hint style="success" %}
This is the official documentation of the `forestadmin/laravel-forestadmin` v2+ and `forestadmin/symfony-forestadmin` PHP agents.
{% endhint %}

![Objective Chart example](https://647272774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABtuALf2WDQ7fxhI0JPa%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.

```php
use ForestAdmin\AgentPHP\DatasourceCustomizer\Context\AgentCustomizationContext;
use ForestAdmin\AgentPHP\DatasourceCustomizer\Decorators\Chart\ResultBuilder;

$forestAgent->addChart(
    'companiesLive',
    fn(AgentCustomizationContext $context, ResultBuilder $resultBuilder) => $resultBuilder->objective(235, 300)
);
```
