# PiecewiseVisualMapSpec

The PiecewiseVisualMapSpec type declaration and related types. Optional fields are marked with ?.

Canonical: https://chart.syidax.com/docs/types/PiecewiseVisualMapSpec/

<a id="declaration"></a>

## Type declaration

```typescript
export interface PiecewiseVisualMapSpec {
  type: 'piecewise';
  min: number;
  max: number;
  pieces: ReadonlyArray<VisualMapPiece>;
  mode: VisualMapPiecewiseMode;
  outOfRangeColor: string;
  selectedMode: VisualMapSelectedMode;
  precision: number | null;
}
```

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

## Related types

- [VisualMapPiece](https://chart.syidax.com/docs/types/VisualMapPiece.md)
- [VisualMapPiecewiseMode](https://chart.syidax.com/docs/types/VisualMapPiecewiseMode.md)
- [VisualMapSelectedMode](https://chart.syidax.com/docs/types/VisualMapSelectedMode.md)
