Progress S-curve

Pro

Cumulative planned work against work earned, up to the data date — the schedule variance a steering committee asks about.

</>sv-gantt-s-curve ganttearned values-curveprogress

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

Pro

Usage example — open the gallery for the full interactive demo.

Pro

An interactive demo for this component lives in the gallery.

Open live demo

More examples

Weekly points with a data date

Pro

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

NameTypeDefaultDescription
tasksreadonly GanttChartTask[][]The plan.
startrequiredstring—First day (`YYYY-MM-DD`).
endrequiredstring—Last day (`YYYY-MM-DD`).
asOfstring | nullnullThe data date — actual stops here. `null` means today.
bucketSvGanttBucket'week'Point spacing.
workWeekreadonly number[][1, 2, 3, 4, 5]Working days, 0 = Sunday.
holidaysreadonly GanttChartHoliday[][]Non-working dates.
ariaLabelstring''Accessible name. Defaults to the "Progress S-curve" label.
localestringsvLocale()Locale for dates and numbers.
loadingbooleanfalseThe 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".
errorSvDataError | string | nullnullLoad failure, shown with Try again. A bare string is the message.

Outputs

EventPayload typeDescription
retryvoidTry 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

Pro

Bound to the names this component actually exposes.

Host class

Pro

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.

Loads giscus.app and GitHub — nothing is fetched until you click.