DeepWorks Studios Blazor Component Library

Demo user Administrator ยท Blazor Server Library 20261206222504-6e8ff32.dirty

DwsChartRangeBar

Draws ranges as horizontal bars, one row per category: each bar runs from its start to its end on a shared value axis, such as a schedule, a timeline or a minimum to maximum. Series are told apart by theme colors and a legend whose entries hide and show them. The chart fills its container on any screen; hovering or focusing a bar shows its detail, and the arrow keys move between the bars.

API Reference

Basic

Only ChartData is needed: a series of items, each with a category (its row), a start and an end. The axis rounds the data out to even steps, and the series takes the theme's Primary color.

Temperature range in Berlin (°C)
Show Code
RangeBarChart.razor
<DwsChartRangeBar Name='RangeBarChartDemo_Basic' ChartData='@_temperatures' Title='Temperature range in Berlin (°C)' ValueFormat='0 °C' WithLegend='false' />
RangeBarChart.razor.cs
// Lowest and highest average daily temperature per month in Berlin.
private readonly DwsChartRangeBarData _temperatures = new DwsChartRangeBarData()
    .AddSeries("Berlin",
        new DwsChartRangeBarItem("Jan", -2, 3),
        new DwsChartRangeBarItem("Feb", -2, 5),
        new DwsChartRangeBarItem("Mar", 1, 9),
        new DwsChartRangeBarItem("Apr", 4, 15),
        new DwsChartRangeBarItem("May", 9, 20),
        new DwsChartRangeBarItem("Jun", 12, 23),
        new DwsChartRangeBarItem("Jul", 14, 25),
        new DwsChartRangeBarItem("Aug", 14, 25),
        new DwsChartRangeBarItem("Sep", 10, 20),
        new DwsChartRangeBarItem("Oct", 6, 14),
        new DwsChartRangeBarItem("Nov", 2, 8),
        new DwsChartRangeBarItem("Dec", -1, 4));

Series and theme colors

Every series has a DwsColor, so the chart follows the active theme; a series left on Undefined takes the next palette color.

Planned and actual (week of the year)
  • Planned
  • Actual
Show Code
RangeBarChart.razor
<DwsChartRangeBar Name='RangeBarChartDemo_Series' ChartData='@_schedule' Title='Planned and actual (week of the year)' ValueFormat="'W'0" />
RangeBarChart.razor.cs
// A project plan in weeks of the year: what was planned, and what happened.
private readonly DwsChartRangeBarData _schedule = new DwsChartRangeBarData()
    .AddSeries("Planned", DwsColor.Primary,
        new DwsChartRangeBarItem("Design", 2, 6),
        new DwsChartRangeBarItem("Build", 6, 14),
        new DwsChartRangeBarItem("Test", 12, 17),
        new DwsChartRangeBarItem("Launch", 17, 18))
    .AddSeries("Actual", DwsColor.Accent,
        new DwsChartRangeBarItem("Design", 2, 7) { Metadata = new() { ["Owner"] = "UX team" } },
        new DwsChartRangeBarItem("Build", 7, 16) { Metadata = new() { ["Owner"] = "Dev team", ["Note"] = "Two weeks late" } },
        new DwsChartRangeBarItem("Test", 14, 19),
        new DwsChartRangeBarItem("Launch", 19, 20));

Timeline with dates and labels

Values are doubles, so dates go in as OLE Automation dates (DateTime.ToOADate) and ValueFormatter turns them back into text for the axis, tooltip and accessible names. ShowLabels writes each item's Label into its bar, in black or white, whichever reads better on the bar's color.

  • Internal
  • Customer
Show Code
RangeBarChart.razor
<DwsChartRangeBar Name='RangeBarChartDemo_Timeline' ChartData='@_rooms' GroupSeries='false' ShowLabels='true'
                  ValueFormatter='@FormatTime' Min='@_dayStart' Max='@_dayEnd' TickCount='10' />
RangeBarChart.razor.cs
private static readonly DateTime Day = new(2026, 10, 5);

private readonly double _dayStart = Day.AddHours(8).ToOADate();
private readonly double _dayEnd = Day.AddHours(18.5).ToOADate();

private readonly DwsChartRangeBarData _rooms = new DwsChartRangeBarData()
    .AddSeries("Internal", DwsColor.Primary,
        Booking("Room A", 8.5, 10, "Stand-up"),
        Booking("Room A", 13, 14.5, "Planning"),
        Booking("Room B", 9, 12, "Workshop"),
        Booking("Room C", 15, 17.5, "Retro"))
    .AddSeries("Customer", DwsColor.Success,
        Booking("Room A", 10.5, 12, "Demo"),
        Booking("Room B", 14, 16, "Kick-off"),
        Booking("Room C", 9.5, 11, "Review"));

private static DwsChartRangeBarItem Booking(string room, double from, double to, string title) =>
    new(room, Day.AddHours(from).ToOADate(), Day.AddHours(to).ToOADate(), title);

private static string FormatTime(double value) =>
    DateTime.FromOADate(value).ToString("t", CultureInfo.CurrentCulture);

Date axis (schedule)

Items built from two DateTime values (StartTime and EndTime) switch the chart to a date axis: the ticks are calendar boundaries from the shared date scale - days, weeks, months or years, whichever needs no more than TickCount + 1 ticks - labelled in the current language's formats, and the tooltip and the accessible names write the dates. Numeric charts are unchanged.

Release plan
  • Planned
  • Actual
Show Code
RangeBarChart.razor
<DwsSwitch Name='RangeBarChartDemo_DateAxis_Weeks' @bind-Value='_weekTicks' Label='TickCount 12 (weeks)' />
<DwsChartRangeBar Name='RangeBarChartDemo_DateAxis' ChartData='@_releasePlan' ShowLabels='true' Title='Release plan'
                  TickCount='@(_weekTicks ? 12 : 5)' />
RangeBarChart.razor.cs
private bool _weekTicks;

// Two DateTime values instead of two numbers: the chart draws a date axis.
private readonly DwsChartRangeBarData _releasePlan = new DwsChartRangeBarData()
    .AddSeries("Planned", DwsColor.Primary,
        new DwsChartRangeBarItem("Design", new DateTime(2026, 10, 5), new DateTime(2026, 10, 16), "Design"),
        new DwsChartRangeBarItem("Build", new DateTime(2026, 10, 12), new DateTime(2026, 11, 20), "Build"),
        new DwsChartRangeBarItem("Test", new DateTime(2026, 11, 16), new DateTime(2026, 12, 4), "Test"),
        new DwsChartRangeBarItem("Roll-out", new DateTime(2026, 12, 7), new DateTime(2026, 12, 11), "Roll-out"))
    .AddSeries("Actual", DwsColor.Accent,
        new DwsChartRangeBarItem("Design", new DateTime(2026, 10, 5), new DateTime(2026, 10, 20), "Design"),
        new DwsChartRangeBarItem("Build", new DateTime(2026, 10, 19), new DateTime(2026, 10, 24), "Build (running)"));

Today line

On a date axis ShowToday draws a line at Today - here fixed to 24 October 2026; null takes the current time.

  • Planned
  • Actual
Show Code
RangeBarChart.razor
<DwsSwitch Name='RangeBarChartDemo_DateAxis_Today' @bind-Value='_showToday' Label='ShowToday' />
<DwsChartRangeBar Name='RangeBarChartDemo_TodayChart' ChartData='@_releasePlan' ShowLabels='true'
                  ShowToday='@_showToday' Today='@_scheduleToday' />
RangeBarChart.razor.cs
private bool _showToday = true;

// Null (the default) marks the current time.
private readonly DateTime _scheduleToday = new(2026, 10, 24);

// Two DateTime values instead of two numbers: the chart draws a date axis.
private readonly DwsChartRangeBarData _releasePlan = new DwsChartRangeBarData()
    .AddSeries("Planned", DwsColor.Primary,
        new DwsChartRangeBarItem("Design", new DateTime(2026, 10, 5), new DateTime(2026, 10, 16), "Design"),
        new DwsChartRangeBarItem("Build", new DateTime(2026, 10, 12), new DateTime(2026, 11, 20), "Build"),
        new DwsChartRangeBarItem("Test", new DateTime(2026, 11, 16), new DateTime(2026, 12, 4), "Test"),
        new DwsChartRangeBarItem("Roll-out", new DateTime(2026, 12, 7), new DateTime(2026, 12, 11), "Roll-out"))
    .AddSeries("Actual", DwsColor.Accent,
        new DwsChartRangeBarItem("Design", new DateTime(2026, 10, 5), new DateTime(2026, 10, 20), "Design"),
        new DwsChartRangeBarItem("Build", new DateTime(2026, 10, 19), new DateTime(2026, 10, 24), "Build (running)"));

Progress within a bar

An item can say how much of its range is done: Progress, 0 to 1. ShowProgress (on by default) draws that share of the bar in the full series color and the rest lighter, and names it in the tooltip and the accessible name ("Sprint 2, Development: ..., 40% done"). Items without a Progress are plain bars; 1 is a full bar. The CSV export gets a Progress column.

Release plan (weeks)
  • Development
  • Testing
Show Code
RangeBarChart.razor
<DwsSwitch Name='RangeBarChartDemo_Progress_Switch' @bind-Value='_showProgress' Label='ShowProgress' />
<DwsChartRangeBar Name='RangeBarChartDemo_Progress' ChartData='@_progressPlan' Title='Release plan (weeks)' ShowProgress='@_showProgress' ShowLabels='true' />
RangeBarChart.razor.cs
private bool _showProgress = true;

// Weeks of a release plan; Progress is the done share of each task.
private readonly DwsChartRangeBarData _progressPlan = new DwsChartRangeBarData()
    .AddSeries("Development", DwsColor.Primary,
        new DwsChartRangeBarItem("Sprint 1", 0, 2, "Login") { Progress = 1 },
        new DwsChartRangeBarItem("Sprint 2", 2, 4, "Reports") { Progress = 0.4 },
        new DwsChartRangeBarItem("Sprint 3", 4, 6, "Export"))   // no Progress: a plain bar
    .AddSeries("Testing", DwsColor.Info,
        new DwsChartRangeBarItem("Sprint 1", 1.5, 2.5, "Login") { Progress = 0.75 },
        new DwsChartRangeBarItem("Sprint 2", 3.5, 4.5, "Reports") { Progress = 0 });

Dependencies (Gantt arrows)

An item names the items that have to end before it starts: DependsOn holds their Ids. ShowDependencies (on by default) draws an arrow from the end of each predecessor to the start of the item, at right angles, and adds the dependencies to the tooltip and the accessible name ("Build, Plan: W4 to W9, depends on Design"). An item that starts before a predecessor ends is a conflict: its arrow turns back, dashed and in the error color, and the bar says "starts before 'Build' ends". The arrows are computed from the bars' places, so they follow the size of the chart; a series hidden through the legend takes its arrows with it. Hovering or focusing a bar thickens its arrows. The arrows are routed around the other bars where they can be: Manual to Launch goes down beside Test instead of through it; when no column between two bars is free, the arrow runs in the gaps between the rows.

Project plan (weeks)
  • Plan
Show Code
RangeBarChart.razor
<DwsSwitch Name='RangeBarChartDemo_Dependencies_Switch' @bind-Value='_showDependencies' Label='ShowDependencies' />
<DwsSwitch Name='RangeBarChartDemo_Dependencies_Conflict' Value='@_dependencyConflict' ValueChanged='HandleDependencyConflictChanged'
           Label='Test starts in week 7 (before Build ends)' />
<DwsChartRangeBar Name='RangeBarChartDemo_Dependencies' ChartData='@_dependencyPlan' Title='Project plan (weeks)' ValueFormat="'W'0"
                  ShowDependencies='@_showDependencies' ShowLabels='true' Min='0' Max='16' TickCount='8' />
RangeBarChart.razor.cs
private bool _showDependencies = true;
private bool _dependencyConflict;
private DwsChartRangeBarData _dependencyPlan = BuildDependencyPlan(testStart: 9);

// Test starting in week 7 is a conflict: Build ends in week 9.
private void HandleDependencyConflictChanged(bool conflict)
{
    _dependencyConflict = conflict;
    _dependencyPlan = BuildDependencyPlan(testStart: conflict ? 7 : 9);
}

// DependsOn names the Ids of the tasks that have to end first.
private static DwsChartRangeBarData BuildDependencyPlan(double testStart) => new DwsChartRangeBarData()
    .AddSeries("Plan", DwsColor.Primary,
        new DwsChartRangeBarItem("Design", 1, 4, "Design") { Id = "design" },
        new DwsChartRangeBarItem("Build", 4, 9, "Build") { Id = "build", DependsOn = ["design"] },
        new DwsChartRangeBarItem("Test", testStart, testStart + 3, "Test") { Id = "test", DependsOn = ["build"] },
        new DwsChartRangeBarItem("Manual", 5, 8, "Manual") { Id = "manual" },
        new DwsChartRangeBarItem("Launch", 13, 14, "Launch") { DependsOn = ["test", "manual"] });

Width and height

Width, Height, MinWidth, MaxWidth, MinHeight and MaxHeight size the chart in pixels, caption, axis and legend included; with a height the rows share what is left. Drag the corner of the box: the chart is 320px high and keeps between 220px and 720px wide.

  • Planned
  • Actual
Show Code
RangeBarChart.razor
<div class='rangebar-demo-resizable'>
    <DwsChartRangeBar Name='RangeBarChartDemo_Size' ChartData='@_schedule' ValueFormat="'W'0" Height='320' MinWidth='220' MaxWidth='720' />
</div>

<style>
    .rangebar-demo-resizable {
        resize: horizontal;
        overflow: auto;
        width: 100%;
        min-width: 240px;
        max-width: 100%;
        padding: 0.5rem;
        border: 1px dashed var(--secondary);
    }
</style>
RangeBarChart.razor.cs
// A project plan in weeks of the year: what was planned, and what happened.
private readonly DwsChartRangeBarData _schedule = new DwsChartRangeBarData()
    .AddSeries("Planned", DwsColor.Primary,
        new DwsChartRangeBarItem("Design", 2, 6),
        new DwsChartRangeBarItem("Build", 6, 14),
        new DwsChartRangeBarItem("Test", 12, 17),
        new DwsChartRangeBarItem("Launch", 17, 18))
    .AddSeries("Actual", DwsColor.Accent,
        new DwsChartRangeBarItem("Design", 2, 7) { Metadata = new() { ["Owner"] = "UX team" } },
        new DwsChartRangeBarItem("Build", 7, 16) { Metadata = new() { ["Owner"] = "Dev team", ["Note"] = "Two weeks late" } },
        new DwsChartRangeBarItem("Test", 14, 19),
        new DwsChartRangeBarItem("Launch", 19, 20));

Many rows that scroll

With MaxHeight 240 and RowMinHeight 28 the 24 rows of this chart do not fit, so they scroll.

  • Opening hours
Show Code
RangeBarChart.razor
<DwsChartRangeBar Name='RangeBarChartDemo_MaxHeight' ChartData='@_shifts' MaxHeight='240' RowMinHeight='28'
                  ValueFormat="00':00'" Min='0' Max='24' TickCount='6' />
RangeBarChart.razor.cs
// Opening hours of 24 stores, too many rows for the 240px the chart may take.
private readonly DwsChartRangeBarData _shifts = BuildShifts();

private static DwsChartRangeBarData BuildShifts()
{
    List<DwsChartRangeBarItem> items = [];

    for (int store = 1; store <= 24; store++)
    {
        int opens = 6 + store % 4;
        int closes = 18 + store % 5;
        items.Add(new DwsChartRangeBarItem($"Store {store:00}", opens, closes));
    }

    return new DwsChartRangeBarData().AddSeries("Opening hours", DwsColor.Info, [.. items]);
}

On a phone: caption, loading and empty content

The chart measures its own width (not the window's) and lays its labels out for it: as many axis labels as fit, labels at the edges run inward, long labels are cut at a word with the full text in their title and tooltip, and the legend goes below. On a touch screen a tap shows the nearest mark's tooltip until the next tap elsewhere or Escape. Caption puts a sentence under the chart that is also its accessible description, IsLoading shows a spinner instead of the drawing, and EmptyContent replaces the no-data text.

  • Planned
  • Actual

A release plan with dates, drawn 320px wide.

Nothing recorded yet - data appears here after the first import.

Show Code
RangeBarChart.razor
<button @onclick='() => _phoneLoading = !_phoneLoading'>IsLoading = @_phoneLoading</button>

<div style='max-width: 320px;'>
    <DwsChartRangeBar Name='RangeBarChartDemo_Phone' ChartData='@_releasePlan' IsLoading='@_phoneLoading' Caption='A release plan with dates, drawn 320px wide.' />
</div>

<DwsChartRangeBar Name='RangeBarChartDemo_EmptyContent' ChartData='null'>
    <EmptyContent>
        <DwsTypography Name='RangeBarChartDemo_EmptyContentText' Typography='DwsTypographyType.Paragraph'>Nothing recorded yet - data appears here after the first import.</DwsTypography>
    </EmptyContent>
</DwsChartRangeBar>

No data

Without any range the chart shows NoDataText, or the localized default when it is not set.

No data to display
Show Code
RangeBarChart.razor
<DwsChartRangeBar Name='RangeBarChartDemo_Empty' ChartData='null' />

Interface-Description

Name Typ Parameters Description
GetDataAsCsv string CultureInfo? culture The data the chart was given as CSV text (RFC 4180, CRLF, a header line): one row per mark in data order, the values as passed in. Null writes numbers the invariant way with commas between the cells; a culture writes them its way with its list separator. Text a spreadsheet would run as a formula gets an apostrophe in front.
ExportDataAsync Task string? fileName, CultureInfo? culture Downloads GetDataAsCsv() as a .csv file (UTF-8 with a byte order mark). Null names the file after the chart's title, else its Name.
FocusAsync ValueTask bool containedInScrollableList Focuses the bar in the tab order: the first one, or the one the user was on last. Does nothing while the chart is hidden, empty, disabled or in permission select mode.
IsSeriesHidden bool int seriesIndex Whether the series at the index is hidden through the legend.
Name Typ Default Description
ChartData DwsChartRangeBarData? null The series to draw. Each DwsChartRangeBarSeries has a Name (its legend entry), a Color and Items; each DwsChartRangeBarItem has a Category (its row), Start, End, an optional Label and optional Metadata (listed in the tooltip). AddSeries(name, [color], items...) chains series. Rows appear in the order their category first occurs. An end before its start draws the range between them; a start or end that is NaN or infinite skips the item with a warning. Null, or no range, shows NoDataText.
Title string? null Caption above the chart, also its accessible name.
NoDataText string? null Text shown when there is nothing to draw. Null uses the localized "No data to display".
EmptyContent RenderFragment? null Shown instead of NoDataText when there is nothing to draw.
IsLoading bool false The data is still on its way: a spinner with the localized "Loading..." instead of the drawing (under static SSR the same, without motion). Also sets the component's loading state.
Caption string? null A sentence under the chart (source, note, takeaway) in a <p class="dws-chart-caption">, referenced by the chart's aria-describedby.
Width int? null Width in px. Never wider than the container unless MinWidth asks for more. Null fills the container.
Height int? null Height in px, caption, axis and legend included; the rows share what is left and shrink to RowMinHeight (1.5rem by default here) before they scroll. Null gives every row RowMinHeight.
MinWidth int? null Smallest width in px; the only size that may make the chart wider than its container.
MaxWidth int? null Largest width in px, and never more than the container.
MinHeight int? null Smallest height in px; the rows grow to fill it.
MaxHeight int? null Largest height in px; taller rows scroll.
RowMinHeight int? null Smallest row height in px; grouped series share it. Null uses 2rem, and 1.5rem with a Height.
Min double? null Value at the start of the axis. Null rounds the lowest start of the shown series down to a step. Min above Max is swapped.
Max double? null Value at the end of the axis. Null rounds the highest end of the shown series up to a step. Ranges past Min or Max are cut off at the edge.
TickCount int 5 About how many intervals the axis has (1-20); exactly this many when both Min and Max are set, otherwise a round step (1, 2, 2.5 or 5 times a power of ten) near it.
ShowGrid bool true Draws a vertical grid line at every tick.
ShowAxis bool true Shows the tick values below the rows.
ShowCategoryLabels bool true Shows the category labels before the rows. Long ones are cut off with an ellipsis at 35% of the width; the accessible names keep the full label.
ValueFormat string "#,0.##" .NET number format for values on the axis, in the tooltip and in the accessible names, in the current UI culture. An invalid format falls back to the default with a warning. Ignored when ValueFormatter is set.
ValueFormatter Func<double, string>? null Turns a value into its text instead of ValueFormat, e.g. v => DateTime.FromOADate(v).ToString("t") for times stored as OLE Automation dates. An exception falls back to ValueFormat and is reported through HandleError.
MinTime DateTime? null Start of a date axis (drawn when every item has a StartTime and an EndTime, e.g. from new DwsChartRangeBarItem(category, start, end)). Null begins at the calendar tick at or before the earliest start.
MaxTime DateTime? null End of a date axis. Null ends at the calendar tick at or after the latest end. Ranges past MinTime or MaxTime are cut off at the edge.
TimeFormat string? null .NET date format for the start and end of a range in the tooltip and the accessible names of a date axis, in the current UI culture. Null uses the short date, with the short time when any range starts or ends off midnight. The axis labels come from the calendar step (DwsChartTimeScale): TickCount + 1 is the most ticks it prints.
ShowToday bool false On a date axis, draws a labelled vertical line at Today when it lies within the axis.
Today DateTime? null The moment ShowToday marks. Null uses the current local time of the server (in WebAssembly of the browser) when the chart is laid out.
TodayText string? null Text of the today line's label. Null uses the localized "Today".
GroupSeries bool true Gives every series with a range in a row its own lane there, in series order. False draws a row's ranges in one lane, later series on top.
ShowLabels bool false Writes each item's Label (or its range, without one) into its bar, in black or white, whichever reads better on the bar's color. Text that does not fit is cut off with an ellipsis.
ShowProgress bool true Shows the Progress (0 to 1) of the items that have one: the done share of the bar in full color, the rest lighter, and "60% done" in the tooltip and the accessible name. Values outside 0 to 1 are held to it; items without a Progress are plain bars.
ShowDependencies bool true Draws an arrow from the end of every item named in a DwsChartRangeBarItem.DependsOn (a list of Ids of other items) to the start of the item that depends on it, at right angles, and names the dependencies in the tooltip and the accessible name. The arrows avoid the other bars where possible: down (or up) in a free column between the two bars, else through the gaps between the rows to a column that is free in the rows between; only when no way is free do they cross a bar (the fewest). An item that starts before a predecessor ends is a conflict: a dashed arrow in the error color that turns back, and "starts before 'Design' ends" in the tooltip and the name. Only data with DependsOn is affected. No arrow for an Id no item has (a warning), for an item depending on itself, and while one of the two bars is in a series hidden through the legend. The segment (tooltip template, events) has Predecessors, Conflicts and DisplayName. The CSV export gets the columns Id and DependsOn.
AllowReschedule bool false Lets the user move a bar along the axis and resize it at its two ends. Pointer: drag the bar, or one of its ends (10px wide, 24px on touch screens); Escape ends a drag; a finger dragged up or down scrolls the page. Keyboard on a focused bar: Space picks it up (Enter too, unless OnBarClick has a handler - then Enter activates the bar), ArrowLeft / ArrowRight move it one step, Shift and an arrow key change its end, Alt and an arrow key its start, Enter or Space drop it, Escape or leaving the bar put it back; every step is announced (role="status"). A bar stays within the axis (set Min / Max to give it room) and at least one step long, and keeps its row. The chart does not change the data: see OnItemRescheduled. Not while disabled or in permission select mode.
RescheduleStep double? null The grid a moved or resized bar snaps to on a numeric axis: starts and ends land on multiples of it. Null uses a round step of about a hundredth of the axis.
RescheduleTimeStep TimeSpan? null The grid on a date axis, counted from midnight. Null uses one day when no range has a time of day, else one hour (15 minutes on an axis shorter than two days).
WithLegend bool true Shows a legend with one entry (swatch and name) per series.
LegendPosition DwsChartLegendPosition DwsChartLegendPosition.Bottom Bottom, Top, Right or Left of the chart. Right and Left list the series in a column and move below the chart on screens narrower than 576px.
LegendToggle bool true Makes each legend entry a toggle button (aria-pressed) that hides and shows its series. The rows stay; the axis fits the series still shown (all of them while every series is hidden). New ChartData shows every series again.
ShowTooltip bool true Shows the detail of the hovered or focused bar: category, series, label, range and Metadata. Escape hides it until the next bar.
TooltipTemplate RenderFragment<DwsChartRangeBarSegment>? null Content of the tooltip. The context is the bar: Item, Series, Category, Start and End (start before end), Length, Color and the indexes.
HighlightOnHover bool true While the pointer is on a legend entry, fades the bars of every other series.
ExtendedHitArea bool true A bar reacts to the pointer over the whole height of its row (its lane with GroupSeries) and over the empty track beside it; the bars of a lane share the track at the middle of their gap. False keeps the reaction to the bar itself.
Name Typ Description
OnBarClick EventCallback<DwsChartRangeBarSegment> Raised when a bar is clicked, tapped or activated with Enter/Space. With a handler the bars get role="button". Not raised while disabled or in permission select mode (a click then selects the chart).
OnBarHover EventCallback<DwsChartRangeBarSegment?> Raised when the pointer or focus enters a bar, and with null when neither is on a bar any more: also when the chart stops reacting or the bar goes away (its series hidden, new data).
OnItemRescheduled EventCallback<DwsChartRangeBarRescheduleEventArgs> Raised when a bar was moved or resized (AllowReschedule), once per drop: Segment / Item / Series, Kind (Move, ResizeStart, ResizeEnd; MoveAndResize when the keyboard changed both ends by different amounts), ByKeyboard, OldStart / OldEnd and NewStart / NewEnd (snapped, start before end), on a date axis also OldStartTime / OldEndTime / NewStartTime / NewEndTime. The handler assigns the new range to the item - args.Apply() does - or sets args.Cancel = true, which puts the bar back and announces the refusal. A bar whose item was not assigned is drawn where it was dropped until its item holds other values or the chart gets new ChartData.
OnSeriesToggle EventCallback<DwsChartRangeBarSeriesEventArgs> Raised when a legend entry hides or shows its series: Series, SeriesIndex and Visible (after the toggle).
Name Typ Default Description
Element ElementReference The associated web component. May be null if accessed before the component is rendered.
ComponentGuid Guid Unique identifier for the component.
TypeString string The name of the component type, obtained from reflection.
Authorized_RegisterEnabled bool false Indicates whether this component is enabled through a permission registry.
Authorized_RegisterSelected bool false Indicates whether this component is selected in permission selection mode.
GetInitializedState bool false Returns whether the component is initialized.
GetRenderModeState DwsRenderMode Returns the current render mode.
GetComponentState DwsComponentStateType Returns the current component state.
GetIsInteractiveState bool false Returns whether the component is interactive.
GetIsPrerenderingState bool false Returns whether the component is prerendering.
GetComponentLoadingState bool false Returns whether the component is loading.
IsFormBusy bool false Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState).
Name Typ Parameters Description
DebugInfo void Logs debug information about the component.
UpdateState void Updates the component's state and triggers StateHasChanged.
UpdateStateAsync Task Asynchronously updates the component's state and triggers StateHasChanged.
Dispose void Disposes the component and releases resources.
FocusAsync ValueTask bool containedInScrollableList Sets focus to the component's element.
Name Typ Default Description
Name string Required unique identifier for the component within its container.
Visible bool true Determines if the component is visible in the UI.
Disabled bool false Disables the form control, ensuring it doesn't participate in form submission.
ComponentNameSpace string The namespace for permission-based access control.
PermissionKey string? null A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins.
Class string Optional CSS class names.
Style string Optional in-line styles.
Tag object An optional user-defined object to store any additional data with the component.
BackReference DwsReference A reference to the enclosing component.
ID string The HTML ID attribute for the component.
AdditionalAttributes Dictionary<string, object> Additional HTML attributes for the component's root element.
IgnorePermissionChecks bool false Bypasses all permission checks for this component.
IgnorePermissionSelection bool false Ignore permission selection mode for this component.
IgnoreFormBusy bool false Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it.
Name Typ Description
OnInitializedCallbackStarted EventCallback Callback when OnInitialized starts.
OnInitializedCallback EventCallback Callback during OnInitialized.
OnInitializedCallbackCompleted EventCallback Callback when OnInitialized completes.
OnInitializedAsyncCallbackStarted EventCallback Callback when OnInitializedAsync starts.
OnInitializedAsyncCallback EventCallback Callback during OnInitializedAsync.
OnInitializedAsyncCallbackCompleted EventCallback Callback when OnInitializedAsync completes.
OnIsComponentLoadingChanged EventCallback<bool> Callback when IsComponentLoading changes.
OnCurrentRenderModeChanged EventCallback<DwsRenderMode> Callback when CurrentRenderMode changes.
OnComponentStateChanged EventCallback<DwsComponentStateType> Callback when ComponentState changes.
An error has occurred. This app may no longer respond until reloaded.