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.
Legend
An interactive legend, its title, point-style markers and a cap on long legends.
Interactive legend controls
The legend sits on any side, aligned to its start, center or end.
Left and Right
stay put in a right-to-left page, while Start and End follow the reading direction.
Reverse flips the entry order. Hovering or focusing an entry fades the other series (HighlightOnHover); clicking it hides
its dataset and re-scales the axes. Set OnClickToggle to false for a label-only legend.
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 |
|---|---|---|---|---|---|---|---|
| Alpha | 65 | 59 | 80 | 81 | 56 | 55 | 72 |
| Beta | 28 | 48 | 40 | 60 | 86 | 92 | 78 |
| Gamma | 40 | 35 | 60 | 45 | 70 | 50 | 65 |
Legend title
A legend
Title names what the entries stand for.
Product lines
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 |
|---|---|---|---|---|---|---|---|
| Product A | 12 | 19 | 14 | 22 | 18 | 25 | 20 |
| Product B | 8 | 11 | 17 | 9 | 14 | 12 | 19 |
| Product C | 5 | 7 | 9 | 12 | 8 | 10 | 14 |
Point-style markers
UsePointStyle draws each entry with its dataset's marker instead of a color box. Entries are
buttons: reached by Tab, toggled with Enter or Space, state exposed via aria-pressed.
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 |
|---|---|---|---|---|---|---|---|
| Stars | 20 | 35 | 28 | 45 | 38 | 52 | 44 |
| Triangles | 12 | 22 | 18 | 30 | 26 | 38 | 32 |
Capping a long legend
MaxHeight caps the legend in pixels and scrolls the rest, so many series do not shrink the
plot. Entries below the fold stay reachable by Tab.
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 |
|---|---|---|---|---|---|---|---|
| Region 1 | 30 | 37.9 | 41.9 | 40.1 | 33.4 | 25 | 19.1 |
| Region 2 | 41.9 | 45.9 | 44.1 | 37.4 | 29 | 23.1 | 22.5 |
| Region 3 | 49.9 | 48.1 | 41.4 | 33 | 27.1 | 26.5 | 31.5 |
| Region 4 | 52.1 | 45.4 | 37 | 31.1 | 30.5 | 35.5 | 43.7 |
| Region 5 | 49.4 | 41 | 35.1 | 34.5 | 39.5 | 47.7 | 55.1 |
| Region 6 | 45 | 39.1 | 38.5 | 43.5 | 51.7 | 59.1 | 62 |
| Region 7 | 43.1 | 42.5 | 47.5 | 55.7 | 63.1 | 66 | 63 |
| Region 8 | 46.5 | 51.5 | 59.7 | 67.1 | 70 | 67 | 59.7 |
| Region 9 | 55.5 | 63.7 | 71.1 | 74 | 71 | 63.7 | 55.5 |
| Region 10 | 67.7 | 75.1 | 78 | 75 | 67.7 | 59.5 | 54.5 |
| Region 11 | 79.1 | 82 | 79 | 71.7 | 63.5 | 58.5 | 59.1 |
| Region 12 | 86 | 83 | 75.7 | 67.5 | 62.5 | 63.1 | 69.1 |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.