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.

Tooltips

Tooltip callbacks for the title, the footer and the labels, currency formats, styling and point-style swatches.

Currency labels

Callbacks.Label replaces a single item's body row; LabelFormatter is the shorthand for formatting just the 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.
SeriesQ1Q2Q3Q4
Revenue1200150017002100
Costs80095011001300

After-body note

BeforeBody and AfterBody add free lines around the values; newlines split the text into several 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.
Line chart with 2 data series.
SeriesQ1Q2Q3Q4
Revenue1200150017002100
Costs80095011001300

Styled box

Colors, padding, corner radius, border, caret and per-part alignment are all options. The tooltip stays inside the chart and flips below the anchor when there is no room above.
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 swatches

UsePointStyle swaps the color square for each dataset's own marker.
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
Triangles20352845385244
Diamonds12221830263832

Wrapping a longer note

Tooltip rows stay on one line unless MaxWidth caps the box in pixels, which wraps longer text inside it.
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.
SeriesUnited StatesUnited KingdomGermanyNetherlandsSwitzerlandAustraliaNew Zealand
Index72658058916774

Feedback

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