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.
Title & footer callbacks
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.
| Series | Q1 | Q2 | Q3 | Q4 |
|---|---|---|---|---|
| Revenue | 1200 | 1500 | 1700 | 2100 |
| Costs | 800 | 950 | 1100 | 1300 |
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.
| Series | Q1 | Q2 | Q3 | Q4 |
|---|---|---|---|---|
| Revenue | 1200 | 1500 | 1700 | 2100 |
| Costs | 800 | 950 | 1100 | 1300 |
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.
| 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 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.
| Series | Jan | Feb | Mar | Apr | May | Jun | Jul |
|---|---|---|---|---|---|---|---|
| Triangles | 20 | 35 | 28 | 45 | 38 | 52 | 44 |
| Diamonds | 12 | 22 | 18 | 30 | 26 | 38 | 32 |
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.
| Series | United States | United Kingdom | Germany | Netherlands | Switzerland | Australia | New Zealand |
|---|---|---|---|---|---|---|---|
| Index | 72 | 65 | 80 | 58 | 91 | 67 | 74 |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.