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.

Area

Gradient and radial fills, stacked areas, ranges filled between datasets and fill boundaries.

Gradient fill

An area is a line dataset with a Fill mode. FillGradient paints it with a linear gradient - here fading to transparent at the bottom.
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.
Line chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Sessions120190160250220300280

Stacked area

With Stacked on the value axis, line datasets accumulate: each band sits on the running total below it, so the top edge is the overall 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.
Line chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Organic30403550456055
Paid20253028353040
Referral10121518142022

Range (fill between datasets)

BitChartFillMode.Dataset fills to another dataset's line, chosen by FillTargetIndex, instead of to an axis - the band shape for confidence intervals and min/max ranges.
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.
Line chart with 2 data series.
SeriesJanFebMarAprMayJunJul
Max28323036404442
Min14161520242623

Fill boundaries

The other fill modes pick the baseline: Origin fills to zero, Start to the bottom of the axis, End to the top and Value to a given 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.
Line chart with 2 data series.
SeriesJanFebMarAprMayJunJul
Origin10-2030-1025-515
Start (top)40354538504455

Radial gradient

BitChartRadialGradient fills from the center of the shape outwards. Its center and radius are fractions of the filled area's bounding box, so it follows the data on resize.
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.
Line chart with 1 data series.
SeriesJanFebMarAprMayJunJul
Signal120190160250220300280

Feedback

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