Progress S-curve
ProCumulative planned work against work earned, up to the data date — the schedule variance a steering committee asks about.
Complexity tier: Application The interactive bar, plus a stated data-volume ceiling, a persistence contract, a bundle budget and an accessible parity surface.
import { SvGanttSCurveComponent } from '@styloviz-pro/gantt';Demo & usage
Basic usage
Usage example — open the gallery for the full interactive demo.
An interactive demo for this component lives in the gallery.
Open live demoMore examples
Weekly points with a data date
Planned from baselines when there are any; actual stops at `asOf`.
When to use
Status reporting on a plan with progress recorded per task. Not a substitute for cost-based earned value: work here is working days, not money.
Async states
- loading
- error
- retry
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| tasks | readonly GanttChartTask[] | [] | The plan. |
| startrequired | string | — | First day (`YYYY-MM-DD`). |
| endrequired | string | — | Last day (`YYYY-MM-DD`). |
| asOf | string | null | null | The data date — actual stops here. `null` means today. |
| bucket | SvGanttBucket | 'week' | Point spacing. |
| workWeek | readonly number[] | [1, 2, 3, 4, 5] | Working days, 0 = Sunday. |
| holidays | readonly GanttChartHoliday[] | [] | Non-working dates. |
| ariaLabel | string | '' | Accessible name. Defaults to the "Progress S-curve" label. |
| locale | string | svLocale() | Locale for dates and numbers. |
| loading | boolean | false | The plan is still loading: a placeholder instead of the curve. A curve of no tasks is a flat 0 % line, which reads as "nothing done" — not as "not here yet". |
| error | SvDataError | string | null | null | Load failure, shown with Try again. A bare string is the message. |
Outputs
| Event | Payload type | Description |
|---|---|---|
| retry | void | Try again on the error state — reload the plan. |
Wire it to your API
This component is headless about transport: it renders what you give it and reports what the user asks for. Nothing below requires @styloviz/data — drive it from whatever you already use.
Template
Bound to the names this component actually exposes.
Host class
Drive the three async inputs from your own fetch.
This component does not emit a query, so it renders what you give it. Call `load()` on your own trigger and bind `tasks`, `loading` and `error`. Normalize failures with `toSvDataError()` from `@styloviz/core`. It derives `retryable` from the status, so a 404 does not get a "Try again" button that can only fail again.
Full walkthrough: Connecting to a backend.
Customization & theming
`bucket`, `asOf` (null = today), `workWeek`, `holidays`, `ariaLabel`, `locale`.
Best practices
Do: Set baselines before tracking, so planned does not move with every re-plan. Tip: `svGanttSCurve` returns the points for a chart of your own.
Accessibility
A `<figure>` with a caption and legend; the latest variance is said in a sentence, and a `sr-only` table lists every point (`—` after the data date).
Feedback on Progress S-curve
Spotted a gap in this page, or something that didn't work as described? Comments are GitHub Discussions in the public styloviz/community repo, so posting needs a GitHub account.