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.

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.
Line chart with 2 data series.
SeriesJanFebMarAprMayJunJul
Rainfall (mm)60488035552015
Temp (°C)791216202427

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.
Line chart with 2 data series.
SeriesJanFebMarAprMayJunJul
Active users1200190017002400220030002800
Latency1209511080907065

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.
Scatter chart with 2 data series.
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.