Skip to main content
twblazor
Home
  • Get started
  • Tailwind with Blazor
  • Why twblazor?
  • Theme
  • Class Merge
    • Configuring localization
    • RTL Provider
  • Breadcrumb
  • Card
  • Carousel
  • Collapse
  • Context Menu
  • Drawer
  • Footer
  • Menu
  • Navbar
  • On This Page
  • Separator
  • Sidebar
  • Stepper
  • Tabs
  • Tree List
  • Container
  • Flex
  • Grid
  • Text
  • Link
  • Button
  • Form
    • AutocompleteNew
    • Checkbox
    • Color Picker
    • Date Picker
    • Date Range Picker
    • Datetime Picker
    • Datetime Range Picker
    • File Upload
    • Input GroupNew
    • NumericNew
    • Masked InputNew
    • Radio Button
    • Range SliderNew
    • RatingNew
    • Select
    • Slider
    • Switch
    • Tag InputNew
    • Text EditorNew
    • Textfield
    • Time Picker
    • Time Range Picker
  • Toggle
  • Toggle Group
  • Alert
  • Avatar
  • Badge
  • Chip
  • Empty
  • Icon
  • Popover
  • Progress
  • Skeleton
  • Spinner
  • Tooltip
  • Data Table
  • SpreadsheetNew
  • Column Filter Editor
  • Pagination
  • Pick List
  • Barcode
  • QR Code
  • Calendar
  • Table
  • Attachment
  • Overview
    • Bar
    • Bullet
    • Column
    • Dot Plot
    • Dumbbell
    • Icon
    • Lollipop
    • Radial Bar
    • Range
    • Word Cloud
    • Area
    • Bump
    • Bump Area
    • Candlestick
    • Gantt
    • Horizon
    • Line
    • Slope
    • Small Multiples
    • Stream Graph
    • Funnel
    • Gauge
    • Marimekko
    • Nightingale
    • Pie
    • Treemap
    • Waffle
    • Waterfall
    • Circular Treemap
    • Convex Treemap
    • Dendrogram
    • Sunburst
    • Barcode
    • Beeswarm
    • Box Plot
    • Density Plot
    • Histogram
    • Radial Histogram
    • Ridgeline
    • Strip Plot
    • Violin Plot
    • Categorical Scatter
    • Contour
    • Hexagonal Binning
    • Quadrant
    • Scatter
    • Heatmap
    • Matrix
    • Parallel Coordinates
    • Radar
    • Arc Diagram
    • Chord Diagram
    • Flowchart
    • Network Diagram
    • Sankey
    • Euler Diagram
    • Venn Diagram
  • Bubble
  • Marker
  • Message
  • Dialog Service
  • Toast Service
API DocumentationAI Agents & Skills
Home Get Started

Charts

TwRangeChart

TwRangeChart is a Blazor range chart that draws a floating bar from a low value to a high value per category, such as salary bands.

Last updated 23 October 2026

Basic usage

TwRangeChart draws a floating bar from a low value to a high value for each category. Pass a list of ChartRange, each with a label, a low and a high.
Salary bandsThousands of pounds
JuniorMidSeniorLead
JuniorMidSeniorLead
JuniorLow 28High 38
MidLow 36High 52
SeniorLow 50High 72
LeadLow 65High 90
20406080100
RAZOR
<TwChart Title="Salary bands" Description="Thousands of pounds">
    <TwRangeChart Ranges="@_salaryBands" />
</TwChart>
CSHARP
@code {
    private readonly ChartRange[] _salaryBands =
    [
        new("Junior", 28, 38),
        new("Mid", 36, 52),
        new("Senior", 50, 72),
        new("Lead", 65, 90)
    ];
}

Vertical

Set Vertical to stand the bars up, which suits ranges over time such as daily temperatures.
Temperature this weekDegrees Celsius
5°10°15°20°
5°10°15°20°
MonColdest 8°Warmest 15°
TueColdest 9°Warmest 17°
WedColdest 11°Warmest 19°
ThuColdest 7°Warmest 14°
FriColdest 6°Warmest 12°
MonTueWedThuFri
RAZOR
<TwChart Title="Temperature this week" Description="Degrees Celsius">
    <TwRangeChart Ranges="@_temperatures" Vertical="true" LowLabel="Coldest" HighLabel="Warmest" LabelHeader="Day" ValueFormat="0°" />
</TwChart>
CSHARP
@code {
    private readonly ChartRange[] _temperatures =
    [
        new("Mon", 8, 15),
        new("Tue", 9, 17),
        new("Wed", 11, 19),
        new("Thu", 7, 14),
        new("Fri", 6, 12)
    ];
}

Labels

LowLabel and HighLabel name the two ends in tooltips and the table view, and LabelHeader names the first table column.

Summary

Tooltips and the table view give the low and high value of each range.

Shared features

The legend, tooltips, keyboard navigation, table view, value formatting, height and empty state work the same on every chart. See TwChart for those options.

Keyboard navigation

The plot is a single Tab stop. Each data point is announced with its series and value as focus reaches it, and the table view presents the same data without the plot.
Key What it does
Tab Moves focus into the plot, onto the data point last visited.
Arrow Right or Arrow Down Moves to the next data point.
Arrow Left or Arrow Up Moves to the previous data point.
Home or End Moves to the first or last data point.
Escape Hides the tooltip of the focused data point.
Enter or Space On a legend item: shows or hides that series. On the table button: switches between the chart and its data table.

On this page

  • Basic usage
  • Vertical
  • Labels
  • Summary
  • Shared features
  • Keyboard navigation
twblazor

The Tailwind CSS component library for Blazor. Accessible, themeable and MIT licensed.

Discord (opens in a new tab) GitHub(opens in a new tab)

Get started

  • Install guide
  • Theming
  • Class merging
  • Localization

Guides

  • Tailwind CSS with Blazor
  • Why twblazor?
  • Right to left
  • AI agents and skills

Resources

  • API documentation (opens in a new tab)
  • llms.txt (opens in a new tab)
  • MIT License (opens in a new tab)

Community

  • Contributing (opens in a new tab)
  • Code of conduct (opens in a new tab)
  • Report an issue (opens in a new tab)

twblazor is and always will be free and open source.

An unhandled error has occurred. Reload