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

TwMatrixChart

TwMatrixChart is a Blazor matrix chart: a grid with a dot sized by value where a row and a column meet, for two categorical dimensions.

Last updated 23 October 2026

Basic usage

TwMatrixChart lays each series out as a row and each category as a column, and draws a dot where they meet, sized by the value. The area of the dot, not its width, follows the value.
Support tickets by day and shift
MorningAfternoonEvening
MorningAfternoonEvening
Morning, MonValue 34
Morning, TueValue 28
Morning, WedValue 31
Morning, ThuValue 25
Morning, FriValue 40
Afternoon, MonValue 52
Afternoon, TueValue 47
Afternoon, WedValue 58
Afternoon, ThuValue 49
Afternoon, FriValue 61
Evening, MonValue 18
Evening, TueValue 22
Evening, WedValue 15
Evening, ThuValue 27
Evening, FriValue 33
MonTueWedThuFri
RAZOR
<TwChart Title="Support tickets by day and shift">
    <TwMatrixChart Categories="@_days" Series="@_shifts" />
</TwChart>
CSHARP
@code {
    private readonly string[] _days = ["Mon", "Tue", "Wed", "Thu", "Fri"];
    
    private readonly ChartSeries[] _shifts =
    [
        new("Morning", [34, 28, 31, 25, 40]),
        new("Afternoon", [52, 47, 58, 49, 61]),
        new("Evening", [18, 22, 15, 27, 33])
    ];
}

Labels

ValueLabel names the value in tooltips and CategoryHeader names the first column of the table view.
Support tickets by day and shift
MorningAfternoonEvening
MorningAfternoonEvening
Morning, MonTickets 34
Morning, TueTickets 28
Morning, WedTickets 31
Morning, ThuTickets 25
Morning, FriTickets 40
Afternoon, MonTickets 52
Afternoon, TueTickets 47
Afternoon, WedTickets 58
Afternoon, ThuTickets 49
Afternoon, FriTickets 61
Evening, MonTickets 18
Evening, TueTickets 22
Evening, WedTickets 15
Evening, ThuTickets 27
Evening, FriTickets 33
MonTueWedThuFri
RAZOR
<TwChart Title="Support tickets by day and shift">
    <TwMatrixChart Categories="@_days" Series="@_shifts" ValueLabel="Tickets" CategoryHeader="Day" />
</TwChart>

When to use

Dot sizes are harder to compare than shades when values are close together. For a dense grid, or to print the values, use TwHeatmapChart.

Summary

Tooltips and the table view give the value of every series for each category.

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
  • Labels
  • When to use
  • 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