Class TwRadialHistogramChart
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
A radial histogram: the values are grouped into equal ranges that wrap around a circle, each bar reaching further out the more values fall in its range. It suits cyclical data such as hours of the day or compass bearings.
public class TwRadialHistogramChart : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
- Inheritance
-
TwRadialHistogramChart
- Implements
- Inherited Members
Remarks
Bars start from an inner ring so that small counts stay visible. For values that do not wrap around, prefer TwHistogramChart, whose bars are easier to compare.
Constructors
TwRadialHistogramChart()
public TwRadialHistogramChart()
Properties
BinCount
Gets or sets how many bins to group the values into, from 4 to 36.
[Parameter]
public int BinCount { get; set; }
Property Value
Remarks
Default is 12.
CountLabel
Gets or sets the label for a bin's count in tooltips and the table view. Defaults to the localized Chart_Count text ("Count").
[Parameter]
public string? CountLabel { get; set; }
Property Value
RangeLabel
Gets or sets the label for a bin's range in the table view. Defaults to the localized Chart_Range text ("Range").
[Parameter]
public string? RangeLabel { get; set; }
Property Value
Values
Gets or sets the raw observations to group.
[Parameter]
public IReadOnlyList<double> Values { get; set; }
Property Value
Methods
BuildScene(ChartSceneBuilder)
Describes what the chart draws by adding marks, data points, axes, legend entries and a table to
builder. Add nothing to show the empty state.
protected override void BuildScene(ChartSceneBuilder builder)
Parameters
builderChartSceneBuilderThe builder that collects the scene.