Charts
TwRadialHistogramChart
TwRadialHistogramChart is a Blazor radial histogram that wraps equal-width bins around a circle, for cyclical values such as hours or bearings.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
TwRadialHistogramChart takes raw Values, groups them into equal ranges and wraps the bars around a circle starting at the top. It suits values that cycle, where the last range sits naturally beside the first.Choosing the bins
BinCount sets how many ranges the values are split into, from 4 to 36. Match it to the cycle: 24 for hours of the day, 12 for months, 8 or 16 for compass points.RAZOR
<TwChart Title="Support tickets by hour" Description="One bar per hour">
<TwRadialHistogramChart Values="@_ticketHours" BinCount="24" RangeLabel="Hour" CountLabel="Tickets" Height="ChartHeight.Large" />
</TwChart>Directions
Bearings are the classic use: with eight bins each bar is a compass sector, north at the top.
When to use
Use a radial histogram for values that cycle, such as hours or bearings. Bars grow from an inner ring so small counts stay visible. For values that do not wrap around, prefer TwHistogramChart, whose bars are easier to compare.
Summary
Tooltips and the table view give the range and count of each bin.