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.

Pie & Doughnut

Pie and doughnut charts, gauges, multiple rings, a KPI in the center, spacing, offsets and rounded arcs.

Pie

A pie splits one dataset into proportional slices, colored from the palette by data index. Hover shows a slice's value and percentage; clicking a legend label removes it from the total.
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.
Pie chart with 1 data series.
SeriesDirectOrganicReferralSocialEmail
Sessions300500180240120

Doughnut

A doughnut is a pie with the middle cut out by CutoutPercentage, leaving room for a headline number.
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.
Doughnut chart with 1 data series.
SeriesDirectOrganicReferralSocialEmail
Sessions300500180240120

Half doughnut (gauge)

Narrowing the sweep with CircumferenceDegrees and rotating the start with RotationDegrees turns a doughnut into a gauge - 180° starting at the left here.
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.
Doughnut chart with 1 data series.
SeriesUsedFree
Dataset 16832

Multi-ring

Several datasets render as concentric rings sharing one set of labels.
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.
Doughnut chart with 2 data series.
SeriesMobileDesktopTablet
2025553510
2026622810

Center text (KPI)

BitChartCenterTextPlugin writes one or two lines into the cutout, shrunk to fit, and says them to screen readers too. It is an ordinary IBitChartPlugin, so custom overlays hook in the same way - and describe what they draw through Describe.
Marked on the chart: 1,340 sessions.
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.
Doughnut chart with 1 data series.
SeriesDirectOrganicReferralSocialEmail
Sessions300500180240120

Spacing, offset and hover

SpacingArc gaps neighbouring slices, Offset pushes every slice out from the center and HoverOffset the hovered one further, with HoverBackgroundColor repainting it.
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.
Doughnut chart with 1 data series.
SeriesDirectOrganicReferralSocialEmail
Sessions300500180240120

Rounded arcs and ring weights

BorderRadius rounds an arc's corners, clamped to half the ring's thickness. Weight sets each ring's share of the radius in a multi-dataset doughnut.
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.
Doughnut chart with 2 data series.
SeriesMobileDesktopTablet
2026622810
2025553510

Feedback

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