Plan Bars
A project timeline being planned: bars grow in on a week grid, one is dragged a week later and pushes the task that depends on it, then another is stretched while the end date rolls. Visitors can drag bars, pull their right edge, or use the arrow keys.
pixikit.com/docs/blocks/illustrations/plan-bars
Customize
Weeks6
Today2.4
Autoplay
Loop
Speed1.0x
Height360px
Width560px
Props
16| Name | Type | Default | Description |
|---|---|---|---|
tasks | PlanBarsTask[] | DEFAULT_TASKS | The tasks, one bar each. |
weeks | number | 6 | How many week columns the grid has. |
today | number | 2.4 | Where the today line sits, in weeks; may be fractional. |
title | string | "Launch plan" | The name in the top bar. |
weekLabel | string | "W{n}" | The week label above each column; {n} is the week number. |
rangeLabel | string | "{n} weeks" | The range label in the top bar; {n} is the number of weeks. |
statusLabels | [string, string] | ["On track", "Moved"] | The two status pill labels: on track, then moved. |
barLabel | string | "{name}, starts week {start}, {length} weeks" | What a screen reader says for a bar; {name}, {start} and {length} are filled in. |
onChange | (tasks: PlanBarsTask[]) => void | None | Called with the new tasks when a visitor moves or resizes a bar. |
autoplay | boolean | true | Starts when the scene scrolls into view; when off it waits for a click on replay. |
loop | boolean | true | Plays again from the start layout after the hold. |
speed | number | 1 | Playback speed multiplier. |
height | number | 360 | The height of the scene in px. |
width | number | 560 | The widest the scene grows, in px. It shrinks to fit a narrower parent. |
replayLabel | string | "Replay" | What screen readers call the replay button. |
className | string | None |