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.
Multi-axis
Several y axes, and two x axes, in one chart.
Rainfall + temperature
Rainfall bars on the left axis, temperature line on the right (
YAxisID). Each axis scales to
its own datasets, so neither measure flattens the other.
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 |
|---|---|---|---|---|---|---|---|
| Rainfall (mm) | 60 | 48 | 80 | 35 | 55 | 20 | 15 |
| Temp (°C) | 7 | 9 | 12 | 16 | 20 | 24 | 27 |
Dual line axes
Two lines whose ranges differ by orders of magnitude, each on its own axis so the smaller one is not
flattened.
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 |
|---|---|---|---|---|---|---|---|
| Active users | 1200 | 1900 | 1700 | 2400 | 2200 | 3000 | 2800 |
| Latency | 120 | 95 | 110 | 80 | 90 | 70 | 65 |
Two x-axes
Secondary x axes work the same way through
XAxisID. They stack outside the plot
(Placement = BitPlacement.Top here), and only the primary axis draws the grid.
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 | X | Y |
|---|---|---|
| Visible | 450 | 20 |
| Visible | 520 | 45 |
| Visible | 580 | 60 |
| Visible | 640 | 38 |
| Visible | 700 | 25 |
| Frequency band | 430 | 30 |
| Frequency band | 500 | 55 |
| Frequency band | 600 | 40 |
| Frequency band | 660 | 50 |
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.