A Timeline Is a Projection of Your Task List
Hand the component a List<GanttTask> and the timeline is what comes out. Dates take a DateTime or a string, Dependency takes a task id or a TaskDependency with a type and lag, and ParentId nests tasks. Nothing asks you to reshape your domain model into a chart configuration first.
Critical Path Without the Arithmetic
Set EnableCriticalPath and the engine walks the dependency graph and highlights the chain that decides the end date. CriticalBarColor and CriticalArrowColor style it. With a working calendar set, lag counts working days, so the path reflects the schedule your team actually works.
Planned Against Actual
Each GanttTask takes a Baseline with its planned dates, drawn below the actual bar once baselines are enabled on the options. Slippage becomes visible rather than something you compute in a report, and the comparison travels in the same task objects as everything else.
Continuous Zoom, Not Fixed View Modes
PixelsPerDay replaced the old view-mode presets in 1.3.0. About 25.7 reads as weeks, 4.9 as months and 1.6 as quarters, and leaving it off auto-fits the data span. ZoomInAsync and ZoomOutAsync step it at runtime, so a day view and a year view are the same option at different values.
One Package, No Toolchain
Since 1.3.0 the engine is vendored as a self-contained ES module and imported by the package itself. No npm, CDN or script tag.
Typed Tasks and Options
GanttTask and over eighty GanttOptions properties as typed C#, so an option name or enum value is checked at build time.
Dependencies with Lag
FS, FF, SF and SS relationships, with lag or lead counted in working days once a calendar is set.
Milestones
Type = TaskType.Milestone renders a diamond on the start date. One enum value, no separate collection.
Critical Path and Baselines
Both are option flags. The engine walks the graph and draws the planned bar under the actual one.
Undo and Redo
Built-in history with CanUndoAsync and CanRedoAsync, plus an OnHistoryChange callback to drive your own toolbar.
Twenty Typed Events
Drag, resize, add, delete, move, progress, dependency, selection, sort, filter, group, column and validation events as EventCallbacks.
.NET 9 Only, Premium Plan
Targets .NET 9, not .NET 8. ApexGantt has no free tier: without a key the chart carries an evaluation watermark whatever your size.
Blazor Gantt Chart FAQ
What is Blazor-ApexGantt?
Blazor-ApexGantt is a Blazor wrapper for the ApexGantt timeline engine. You render an ApexGantt component in Razor and hand it a List<GanttTask> plus a GanttOptions object, both strongly typed C#. Version 1.5.0 bundles core 3.21 as a self-contained ES module inside the NuGet package, so there is no script tag, CDN reference or npm step.
Which .NET versions does Blazor-ApexGantt support?
Version 1.5.0 targets .NET 9 only. Unlike the chart and data grid packages, which multi-target .NET 8, 9 and 10, a .NET 8 LTS project cannot use it without moving framework. Check this before planning around it.
Is there a free tier for the Blazor Gantt chart?
No. ApexGantt is included in the Premium plan and above, and there is no free tier. The $2M threshold that makes some Apex products free does not apply here: a Premium license is required whatever your financial resources, by companies, individuals, non-profits and educators alike. Without a valid key the chart renders with a trial watermark, which is for evaluation only.
How do I install the Blazor Gantt chart?
Run dotnet add package Blazor-ApexGantt, register the services with builder.Services.AddApexGantt in Program.cs, and add @using Blazor_ApexGantt.Components and @using Blazor_ApexGantt.Models to your _Imports.razor. The registration is where the license key goes, and unlike the data grid package it is required rather than optional.
How do I create a milestone in the Blazor Gantt chart?
Set Type to TaskType.Milestone and leave EndTime off. The task renders as a milestone diamond on its StartTime, and MilestoneColor on the options controls the diamond colour. The Type is the clearest form but no longer required: the core bundled since 1.4.0 also draws a childless task with a StartTime, no EndTime and no Type as a milestone. An explicit TaskType.Task with no EndTime is still rejected.
How do task dependencies work?
The Dependency property takes either a plain task-id string, which means Finish-to-Start with zero lag, or a TaskDependency object for a typed relationship. TaskDependency carries TaskId, a DependencyType of FS, FF, SF or SS, and a Lag that can be negative for lead. Lag counts working days when a working calendar is set and calendar days otherwise. LagUnit never had an effect and is marked [Obsolete] from 1.4.0, so remove the assignment. Lag feeds the critical path and the arrow tooltip, and links never move tasks.
Where did ViewMode go?
It was removed in 1.3.0 along with EnableToolbar. Zoom is now continuous through PixelsPerDay: about 80 reads as days, 25.7 as weeks, 4.9 as months, 1.6 as quarters and 0.5 as years, and omitting it auto-fits the data span. ZoomInAsync and ZoomOutAsync step it at runtime. Code written against 1.2.0 that sets ViewMode will not compile against 1.3.0.
Can I use custom HTML tooltips from Blazor?
Yes, from 1.4.0. TooltipTemplate on GanttOptions takes a JsFunction: JavaScript source written in C# and compiled once in the browser, because the template runs synchronously on every hover and an async .NET callback cannot return the HTML in time. DependencyOptions.TooltipTemplate and CalendarOptions.HolidayTooltip work the same way. The template is JavaScript, not a Razor fragment, so it cannot contain Blazor components.
How do I save the edits users make in the chart?
Handle OnTaskUpdateSuccess, which fires once per committed edit on every path: drag, resize, progress drag, the edit dialog, inline edits, the keyboard and UpdateTaskAsync. Its Source says which. To save the whole plan instead, GetTasksAsync and GetDependenciesAsync return copies of the tasks and links as they are now, edits included. If you also save from OnTaskDragged, a drag is saved twice.
Can the Blazor Gantt chart follow an Ignite UI theme?
Yes, from 1.5.0. Set IgniteUI = true where you call AddApexGantt and charts take their bar, grid, text and surface colours, font and light or dark variant from the Ignite UI theme on the page. The add-on needs no extra licence key. GanttOptions.DesignSystem = false turns it off for one chart, Tokens = false also drops the family --apx-* tokens, and ThemeName picks a theme registered by name.
Why does my Blazor Gantt chart render blank?
Usually the render mode. From .NET 8, Blazor Web Apps render statically by default, so a component that needs JavaScript interop must opt into InteractiveServer, InteractiveWebAssembly or InteractiveAuto. There is no error and nothing in the console when this is wrong. Also check that Height resolves to a real value.
Ready to schedule in C#?
One dotnet add package, one AddApexGantt, and an interactive render mode. ApexGantt needs a Premium license, and works watermarked while you evaluate it.
See ApexGantt features