Skip to content

Extras

ResourceTimeline

Bit.BlazorUI.ExtrasResourceSchedulerGanttResourcePlanner

BitResourceTimeline is a high-performance resource timeline - a planner or scheduler with the time along the horizontal axis, the resources down the vertical one and the allocations drawn as bars in between, for gate and fleet planning, crew rosters, machine schedules and the like. One engine lays the board out and drives it while a canvas, SVG or HTML renderer paints it, so tens of thousands of bars stay fluid. It zooms from weeks down to minutes, selects and navigates with the pointer and the keyboard, edits (move, resize, create, copy, paste and delete) under the app's control, nests resources into collapsible groups, draws its axes in any time zone and locale, streams large data sets or loads them window by window on demand, and takes templates for its resource column, its tooltips and its corner.

Notes

To use this component, you need to install the Bit.BlazorUI.Extras(opens in a new tab) nuget package, as described in the Optional steps of the Getting started page.

The timeline fills its container, so give the element around it a height. Its axes are laid out left to right whatever the direction of the page.

Overview

Resources and allocation bars from a Config, nested resource groups, the look of a bar and its sections, and the canvas, SVG and HTML renderers.

Basic

A Config is all the timeline needs: its Resources down the vertical axis, the time range from StartDate to EndDate along the horizontal one, and the Allocations drawn as bars between them, each on the row its ResourceId names. It opens with one day in view: scroll sideways for the rest, hover a bar for its tooltip, and zoom with Ctrl + wheel or a pinch. The Config is compared by reference, so a new instance is what reloads it.

Resource hierarchy

A resource whose ParentId names another one is nested under it, to any depth: the parent becomes a group row, indented by its depth, that a click expands or collapses. Collapsed starts a group closed (Terminal B). A group row can still hold bars of its own, like the cleaning and the inspection of Terminal A.

GroupSeparators draws a band between the groups, across the resource column and the content: its Height and Background, a BorderWidth, BorderColor and BorderStyle along both of its edges, and MaxDepth, the deepest level whose groups it separates (1 adds the remote stands of Terminal A). A separator takes room of its own between the rows, and moves with them as a group is collapsed or expanded. A new instance replaces the previous one, and an empty one clears it.

GroupSeparators


Bar appearance

Each allocation can look its own way. Color fills the bar and Height sets its thickness (4px unless it is given); Texts label it on every side - TopStart, TopCenter and TopEnd above it, BottomStart, BottomCenter and BottomEnd below it, Start and End beside it - each in its own Color and Font and moved by its own OffsetX and OffsetY when it is given them (a plain string is a text in the default look); StartBar and EndBar draw edge bars before and after it, here a delay; and Tooltip replaces the default hover text. Icons anchor images - URLs or data URIs - at the Position Start, End, Above, Below or Center of the bar, beside it or, with Inside, within it, in a box of Size pixels. Labels and icons are left out of bars too narrow for them.

A label above or below a bar sits at its center or one of its edges, which a long bar can have far out of view. StickyBarLabels has what is centered on a bar - TopCenter, BottomCenter and the Above, Below and Center icons - follow the part of the bar in view, and holds the texts at its edges in from the edge of the timeline, never leaving the bar: scroll along the two-day maintenance of Gate A5.


Bar sections

Sections split a bar into parts with colors, text and an icon of their own - the phases of a turnaround, the part of a job that has run. A section is bounded by times (StartTime, EndTime) or by percentages of the bar (StartPercent, EndPercent), an edge given neither way is the bar's own, and it always stays within the bar. BackgroundColor, BorderColor and ForegroundColor paint it, and its Text and Icon (fitted in IconSize) sit at their TextPosition and IconPosition. What does not fit is left out rather than cut, so give a sectioned bar a Height its text fits in. With StickyBarLabels, a section's centered text and icon follow the part of the section in view, as a bar's labels do, and step aside for the bar's Center icons.

Renderers

Options carries the visual configuration of the timeline, and its Renderer picks what paints it: Canvas (the default, and the fastest on dense data), Svg (vector output, inspectable and print friendly) or Html (a real element per visible bar, carrying its id in data-bar-id). One engine drives all three, so the data, the interaction and the events are the same. Options is compared by reference, so a new instance is what applies a change - here, a switch of the renderer at runtime. On the HTML renderer the ClassName of an allocation lands on the element of its bar for your own CSS: switch to Html to see the flights already gone hatched.

Renderer

Topics

Everything else about ResourceTimeline, one page per topic.

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.