# GridChartEvent

Fields, allowed values, and APIs that use GridChartEvent.

Canonical: https://grid.syidax.com/docs/types/GridChartEvent/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type GridChartEvent =
  | (GridChartEventSpine & {
    readonly type: 'created';
    readonly chartType: SyChartConcreteType;
    readonly projection: GridChartProjectionKind;
    readonly source: GridChartModelSource;
  })
  | (GridChartEventSpine & {
    readonly type: 'rangeChanged';
    readonly source: GridChartModelSource;
    readonly previousSource: GridChartModelSource;
  })
  | (GridChartEventSpine & {
    readonly type: 'optionsChanged';
    readonly options: GridChartOptions;
    readonly changedKeys: readonly GridChartOptionKey[];
  })
  | (GridChartEventSpine & {
    readonly type: 'destroyed';
    readonly cause: GridChartDestroyCause;
  });
```

<a id="parents"></a>

## Contracts containing this type

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

<a id="related"></a>

## Related types

- [GridChartEventSpine](https://grid.syidax.com/docs/types/GridChartEventSpine.md)
- [SyChartConcreteType](https://grid.syidax.com/docs/types/SyChartConcreteType.md)
- [GridChartProjectionKind](https://grid.syidax.com/docs/types/GridChartProjectionKind.md)
- [GridChartModelSource](https://grid.syidax.com/docs/types/GridChartModelSource.md)
- [GridChartOptions](https://grid.syidax.com/docs/types/GridChartOptions.md)
- [GridChartOptionKey](https://grid.syidax.com/docs/types/GridChartOptionKey.md)
- [GridChartDestroyCause](https://grid.syidax.com/docs/types/GridChartDestroyCause.md)
