# chartOptionsChanged

Emitted when integrated chart settings change. Update saved chart models if needed.

Canonical: https://grid.syidax.com/docs/events/chartOptionsChanged/

<a id="meaning"></a>

## What does this API do?

Emitted when integrated chart settings change. Update saved chart models if needed.

API for Pro features: Integrated range charts and pivot chart tools

<a id="contract"></a>

## Exact input and result types

```typescript
chartOptionsChanged: SyGridChartEvent
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('chartOptionsChanged', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('chartOptionsChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

- [SyGridChartEvent](https://grid.syidax.com/docs/types/SyGridChartEvent.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Chart selected data](https://grid.syidax.com/docs/features/integrated-charts.md) — Connect a Grid range to a chart to view the same data as both a table and a graph. Select category and value columns appropriate to the chart type, rather than simply selecting numeric values.
