# ChartColorRange (@salmonui/charts/chart)

> The ChartColorRange interface of @salmonui/charts/chart: A y value range with its data colors: one color, or several spread across the range.

Canonical: https://salmonui.dev/docs/reference/charts/chart/ChartColorRange

```ts
import type { ChartColorRange } from '@salmonui/charts/chart';
```

Entry index: https://salmonui.dev/docs/reference/charts/chart (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/chart.md).

## Reference

Kind: interface

```ts
interface ChartColorRange {
    readonly from: number;
    readonly to: number;
    readonly colors: readonly string[];
    readonly label?: string | undefined;
}
```

A y value range with its data colors: one color, or several spread across the range.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `from` | `readonly from: number;` |  |  |
| `to` | `readonly to: number;` |  |  |
| `colors` | `readonly colors: readonly string[];` |  |  |
| `label` | `readonly label?: string \| undefined;` | optional |  |
