Class TwHistogramChart
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
A histogram: raw values grouped into equal-width bins, with a column per bin showing how many values fall in it, revealing the shape of a distribution.
public class TwHistogramChart : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
- Inheritance
-
TwHistogramChart
- Implements
- Inherited Members
Constructors
TwHistogramChart()
public TwHistogramChart()
Properties
BinCount
Gets or sets how many bins to group the values into.
[Parameter]
public int? BinCount { get; set; }
Property Value
- int?
Remarks
If not set, the count follows Sturges' rule, which grows slowly with the number of values.
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 tooltips and 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 values 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.