RayCraftDocs
v1.0.3 raycraft.dev
On this page

Histogram

Complete

Counts of values in equal ranges, drawn as touching bars. Choose the number of bins or the width of a bin, and show counts or shares.

Example

Histogram control

Parameters

ParameterTypeDescription
Binsint
BinWidthDouble
ClassstringExtra CSS classes added to the root element.
HeightDoubleMaximum height of the grid body, for example 24rem (default 28rem with VirtualScroll).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
ScaleHistogramScaleWidth of a day on the time scale: Day, Week or Month.
ShowDataLabelsboolWrites the value on each mark (bars, line points, pie slices).
ShowExportboolAdds buttons that save the chart as a PNG or SVG image.
ShowGridboolDraws horizontal grid lines.
ShowLegendboolShows the clickable legend.
StylestringInline style added to the root element.
ValueFormatstringNumber format for axis and tooltips, e.g. N0 or P1.
ValuesIEnumerable<Double>The numbers to plot.
WidthDoubleSkeleton: any CSS length. Charts: drawing width in SVG units (the chart still scales to its container).

Package

Histogram is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.