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.

Time axis, templates & data

Working time and surface colors, the time zone and locale of the axes, templates for the resource column, the tooltips and the corner, resizing the resource column, and large data streamed in batches or loaded window by window on demand.

Working time & surface

NonWorkingDays (0 = Sunday ... 6 = Saturday) and WorkingHoursStart / WorkingHoursEnd (minutes from midnight) wash the weekends and the hours off. Surface colors the content under the grid and the bars: its Columns stripe it by day, by hour (a Span of 8 makes three shifts, Align Repeat restarts them every day) or by week, its Rows stripe the resource rows, ResourceColors gives a row a color of its own, Combine Checker crosses the two, and Bands paint explicit ranges across every row or along one; ShadeTimeAxis and ShadeResourceAxis carry the colors into the axes. AxisLines recolors the grid lines, here every midnight and every row. The Background and the LineColor of a resource win over all of it (Gate A3, Gate A5). A new Surface or AxisLines replaces the previous one as a whole, and an empty one clears it.

Surface


Time zone & locale

The axes are drawn in the viewer's time zone unless TimeZone names an IANA one; the bars are absolute instants, so only the axis moves under them. ShowUtcTime adds a second hour row in UTC - half an hour off under the +05:30 of Kolkata - and a taller TimeAxisHeight gives it room. Locale formats the date-row labels, the tooltips and the announcements, Hour12 labels the hours 3 PM rather than 15, and FirstDayOfWeek is where the weeks of the surface and of a zoomed-out date row start (the week start of the locale while it is not set) - zoom to seven days to see the weeks.

TimeZone

Locale

FirstDayOfWeek


Templates

ResourceTemplate replaces the labels of the resource column with your own markup for each visible row, receiving its Resource, its Depth and whether it HasChildren or is Collapsed; a group row keeps its expand / collapse button before it. TooltipTemplate renders the hovered bar in a positioned overlay, on every renderer, instead of the built-in tooltip - here with its times in UTC, the TimeZone the axis is drawn in, since the template is rendered by .NET, which may run on a server in another zone than the viewer's. TopStartContent fills the corner where the axes meet. LoadingContent replaces the spinner shown while the bars load, and LoadingMinDurationMs keeps it up long enough to be seen - press Reload, which assigns a new Config; PreserveScrollOnReload keeps the view where it was.


Gates flights in 2 weeks
<_BitResourceTimelineRenderGate RenderKey="_resourceRowsRenderKey">

Resource column

The resource column is ResourceAxisWidth wide (150px unless it is given) and, unless ResourceAxisResizable is off, resized by dragging its divider - or by focusing the divider and using the arrows, Home and End - between ResourceAxisMinWidth and ResourceAxisMaxWidth. OnResourceAxisWidthChanged reports the width once a resize is committed, for the app to keep and pass back.


ResourceAxisWidth: 200 px

Large data

The engine draws only what is in view, so tens of thousands of bars - about 40,000 here, of 160 gates over five weeks - scroll and zoom as smoothly as a handful. A data set larger than LoadBatchSize (10,000 by default) is streamed to the browser in batches of that size rather than in one huge interop call. A few changed bars need no reload: UpsertAllocationsAsync merges changed or new bars by id and RemoveAllocationsAsync drops bars by id, both keeping the selection, while ReloadAsync sends a Config changed in place again in full. The first two leave Config.Allocations as it is, so the app keeps that in step itself.


On-demand loading

With LoadAllocationsAsync the bars are not taken from the Config, which then holds the resources and the range alone: the timeline asks for the bars of the window it needs - the visible range plus WindowBufferFactor views on each side - and asks again once a scroll or a zoom comes within WindowRefetchThreshold views of its edge, WindowDebounceMs after the last move. A fetch overtaken by a newer one is dropped. Here 100 gates over eight months, some 170,000 flights, are served a few thousand at a time by a simulated server.

Waiting for the first window

Feedback

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