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.

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.
Line chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Alpha65598081565572
Beta28484060869278
Gamma40356045705065

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.
Bar chart with 3 data series.
SeriesJanFebMarAprMayJunJul
Product A12191422182520
Product B811179141219
Product C5791281014

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.
Line chart with 2 data series.
SeriesJanFebMarAprMayJunJul
Stars20352845385244
Triangles12221830263832

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.
Line chart with 12 data series.
SeriesJanFebMarAprMayJunJul
Region 13037.941.940.133.42519.1
Region 241.945.944.137.42923.122.5
Region 349.948.141.43327.126.531.5
Region 452.145.43731.130.535.543.7
Region 549.44135.134.539.547.755.1
Region 64539.138.543.551.759.162
Region 743.142.547.555.763.16663
Region 846.551.559.767.1706759.7
Region 955.563.771.1747163.755.5
Region 1067.775.1787567.759.554.5
Region 1179.1827971.763.558.559.1
Region 12868375.767.562.563.169.1

Feedback

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