Skip to content

Extras

Chart

Bit.BlazorUI.ExtrasGraphPlot

BitChart renders native SVG computed in C# - no canvas or JavaScript engine - so it works in prerendering and static SSR. A Chart.js-like API (BitChartType + BitChartData + BitChartOptions, or one BitChartConfig) draws line, bar, area, pie, doughnut, polar area, radar, scatter, bubble, mixed and sparkline charts, styled by the bit theme and public --bit-Chart-* CSS variables, with keyboard and screen-reader support and SVG/PNG/CSV export.

Bar

Grouped, stacked, horizontal, floating and 100% stacked bars, rounded corners, pattern fills, stacked groups, error bars and waterfalls.

Grouped

By default datasets stand side by side within each category. CategoryPercentage sets how much of the band the group takes and BarPercentage how much of its slot each bar fills.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Product A12191422182520
Product B811179141219
Product C5791281014

Stacked

Stacked on the value scale accumulates the datasets, so each bar is a total broken into parts. Positive and negative values stack away from zero independently.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Product A12191422182520
Product B811179141219
Product C5791281014

Horizontal

IndexAxis = BitChartIndexAxis.Y draws horizontal bars, giving long category names more room.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesRedBlueTealOrangePurple
Votes12197159

Rounded + per-bar colors

BorderRadius rounds the corners away from the baseline, keeping a flat foot on the axis. A list in BackgroundColors gives one color per category instead of per series.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesRedBlueTealOrangePurple
Votes12197159

Floating bars

With RangeData each bar spans a [low, high] pair instead of growing from zero - for ranges, price bands and Gantt-style schedules.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesMonTueWedThuFri
Temp range (°C)8–1610–197–1411–219–18

100% stacked

Stacked100 normalizes every category to 100% to show composition; the tooltip still shows the original values.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Product A12191422182520
Product B811179141219
Product C5791281014

Pattern fills

BackgroundPattern fills the bars with a repeating hatch, grid or dot texture, keeping series distinguishable in black-and-white print and for color-blind readers.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 2 data series.
SeriesAlphaBetaGammaDelta
A40553560
B28425033

Top-rounded corners

BorderRadiusCorners sets which corners are rounded when the automatic choice is not wanted - here only the top two, with BitChartBorderRadiusCorners.Top.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Throughput40655080607255

Auto-rotated labels

Category labels that do not fit their band rotate just enough to fit, never past MaxRotation, and the axis reserves the extra height they need.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesUnited StatesUnited KingdomGermanyNetherlandsSwitzerlandAustraliaNew Zealand
Index72658058916774

Stacked groups

Datasets sharing a Stack id accumulate together, one column per id. The value axis fits the tallest stack, not the sum of all of them.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 4 data series.
SeriesQ1Q2Q3Q4
2025 · New20282432
2025 · Renew12161418
2026 · New26302938
2026 · Renew15181722

Minimum length and a custom base

MinBarLength keeps near-zero values visible instead of collapsing into the axis, and Base moves the value bars grow from - here a target of 100.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Units vs target11896100.213188104112

Overlaid series and skipped gaps

A dataset with Grouped = false spans the full category band, e.g. a target drawn behind the actuals. SkipNull lets the other bars widen over categories where a series has no value.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Budget20222426283032
Team A12191422182520
Team B817141219

Error bars

ErrorData draws a capped whisker through each value's tip and names the interval in the tooltip. A BitChartErrorBar takes one number (symmetric) or two (asymmetric); null skips a value. Style it with ErrorBarColor, ErrorBarWidth and ErrorBarCapWidth; lines and scatter support it too.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Response time (ms)120 ±12138 ±9131 ±15156 +24/-6149 ±11162158 ±8

Waterfall

A waterfall from existing options: RangeData floats each bar between the running totals before and after its step, BackgroundColorFn colors it by direction, and Callbacks.Label reports the step instead of the bar's two ends.
Interactive chart. Use the left and right arrow keys to move through a series, the up and down arrow keys to move between series, Home and End for the first and last value, Enter to select, and Escape to leave.
Bar chart with 1 data series.
SeriesOpeningNewUpsellChurnDiscountsExpansionClosing
MRR0–120120–166166–184152–184141–152141–1650–165

Feedback

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