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.

Annotations

Threshold lines, boxes, vertical markers, ellipses, polygons and points drawn over the plot.

Threshold lines

BitChartAnnotationPlugin draws reference lines, boxes, points and labels in data coordinates, so they follow the values as the chart resizes - here a target line and a shaded warning band. A label's pill takes the annotation's Color. Screen readers hear what each one marks - its Label and value ("Target: 80"), or a Description of your own.
Marked on the chart: Target: 80; Low band: scores under 30.
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
Score20456035759070

Box + vertical marker

A box highlights a span of categories and a vertical line marks a single event. DrawBehindDatasets places an annotation under or over the data.
Marked on the chart: Launch: Apr.
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 1 data series.
SeriesJanFebMarAprMayJunJul
Sales30425570644852

Ellipse, polygon and point

An annotation can also be an Ellipse inscribed in its XMin/XMax/YMin/YMax bounds, a regular Polygon (Sides, Radius, Rotation) or a Point. All are placed in data coordinates and take a Label.
Marked on the chart: Best run; Dip.
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
Score20456035759070

Feedback

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