# GanttPdfBar (@salmonui/export/gantt)

> The GanttPdfBar interface of @salmonui/export/gantt: One bar of the chart, in px; row indexes GanttPdfModel.rows, top / height are inside the row.

Canonical: https://salmonui.dev/docs/reference/export/gantt/GanttPdfBar

```ts
import type { GanttPdfBar } from '@salmonui/export/gantt';
```

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

## Reference

Kind: interface

```ts
interface GanttPdfBar {
    readonly row: number;
    readonly kind: GanttPdfBarKind;
    readonly x: number;
    readonly width: number;
    readonly top: number;
    readonly height: number;
    readonly progress: number;
    readonly color: string;
    readonly progressColor: string;
    readonly critical?: boolean;
    readonly segments?: readonly {
        readonly x: number;
        readonly width: number;
    }[];
    readonly label?: string;
}
```

One bar of the chart, in px; `row` indexes `GanttPdfModel.rows`, `top` / `height` are inside the row.

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: number;` |  |  |
| `kind` | `readonly kind: GanttPdfBarKind;` |  |  |
| `x` | `readonly x: number;` |  |  |
| `width` | `readonly width: number;` |  |  |
| `top` | `readonly top: number;` |  |  |
| `height` | `readonly height: number;` |  |  |
| `progress` | `readonly progress: number;` |  | 0..100. |
| `color` | `readonly color: string;` |  | `#rrggbb`. |
| `progressColor` | `readonly progressColor: string;` |  |  |
| `critical` | `readonly critical?: boolean;` | optional | Outlined with `progressColor`. |
| `segments` | `readonly segments?: readonly {     readonly x: number;     readonly width: number; }[];` | optional | Split task parts (px from the chart start), joined by a dashed line. |
| `label` | `readonly label?: string;` | optional | Drawn after the bar end. |
