# ChartSegment (@salmonui/charts/chart)

> The ChartSegment interface of @salmonui/charts/chart.

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

```ts
import type { ChartSegment } 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 ChartSegment {
    readonly until?: number | undefined;
    readonly color: string;
    readonly lineStyle?: ChartLineStyle | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `until` | `readonly until?: number \| undefined;` | optional | Segment applies to values (x or y per `segmentAxis`) up to and including `until`; the last segment has none. |
| `color` | `readonly color: string;` |  |  |
| `lineStyle` | `readonly lineStyle?: ChartLineStyle \| undefined;` | optional |  |
