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.

Scales

Fixed and suggested ranges, step sizes, logarithmic and reversed axes, axes at the zero line, and grace.

Fixed min / max

Min and Max pin the axis range, so it does not rescale as the data changes.
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
Value35524870607866

Suggested min / max

SuggestedMin and SuggestedMax only widen the range; the axis still grows past them to fit the data.
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
Value35524870607866

Explicit step size

StepSize fixes the tick spacing and MaxTicksLimit caps the tick count. Labels that do not fit are dropped, so they never collide.
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
Value35524870607866

Logarithmic

Type = BitChartScaleType.Logarithmic gives every decade equal space; faint minor gridlines mark the steps in between.
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
Growth110100100050002000080000

Reversed Y axis

Reverse flips the axis - for rankings, first place at the top.
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
Rank8673421

Axes at the zero line

Placement = BitPlacement.Center draws an axis at the other axis's zero instead of the plot edge, splitting signed data into quadrants. It takes no layout space.
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 1 data series.
Series X Y
Samples -0.54 -9.1
Samples -0.86 8.12
Samples -6.55 -6.56
Samples 6.69 9.21
Samples -3.23 -3.4
Samples -2.08 -8.9
Samples -6.11 -6.15
Samples 3.64 8
Samples -0.27 6.31
Samples 9.5 1.48
Samples -4.43 0.94
Samples 7.02 7.51
Samples 5.56 2.03
Samples -2.17 0.07
Samples 1.7 8.8
Samples -5.04 -2.98
Samples 4.41 -4.71
Samples -0.33 -5.21
Samples -7.16 7.55
Samples -5.46 -5.93
Samples 9 5.44
Samples -1.75 0.37
Samples 4.13 -0.36
Samples -8.41 2.59
Samples -5.57 3.5
Samples 3.76 3.53
Samples 2.28 4.58
Samples -2.05 8.52
Samples -6.12 1.63
Samples -7.44 1.42
Samples 5.61 -3.37
Samples -2.49 -2.03
Samples -8.36 -9.1
Samples -3.31 8.61
Samples 4.17 -1.16
Samples 5.16 2.18
Samples 1.77 5.43
Samples 2.48 0.13
Samples -7.32 -3.35
Samples -6.63 -4.08

Grace (padding)

Grace pads the range by a fraction of itself, so the extremes do not touch the frame.
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
Value35524870607866

Feedback

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