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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Sessions | 120 | 190 | 160 | 250 | 220 | 300 | 280 |
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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Organic | 30 | 40 | 35 | 50 | 45 | 60 | 55 |
| Paid | 20 | 25 | 30 | 28 | 35 | 30 | 40 |
| Referral | 10 | 12 | 15 | 18 | 14 | 20 | 22 |
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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Max | 28 | 32 | 30 | 36 | 40 | 44 | 42 |
| Min | 14 | 16 | 15 | 20 | 24 | 26 | 23 |
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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Origin | 10 | -20 | 30 | -10 | 25 | -5 | 15 |
| Start (top) | 40 | 35 | 45 | 38 | 50 | 44 | 55 |
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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Signal | 120 | 190 | 160 | 250 | 220 | 300 | 280 |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.