# Color by Value

Sometimes it is useful for the color of the indicators to show if the value is negative or positive, the parameter `color_by_value` handles that automatically.

The following example shows how to use it:

```python
s.plt.indicator(
    data=[{
        'align': 'center',
        'title': 'Positive case',
        'value': 10,
    }, {
        'align': 'center',
        'title': 'Negative case',
        'value': -10,
    }, {
        'align': 'center',
        'title': 'Neutral case',
        'value': 0,
    }],
    order=0,
    color_by_value=True
)
```

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2FVxQJO1oKLptzZNlUW8oo%2FIndicators%20by%20value.png?alt=media&#x26;token=b4483594-4534-4d97-984b-5743735a6083" alt=""><figcaption><p>Color for indicators based on value</p></figcaption></figure>
