HistogramChart
A HistogramChart
is a type of graph that represents the distribution of
numerical data. It’s constructed by dividing the entire range of values into a
series of intervals—known as bins and then counting how many values fall into
each interval. The bins are typically of equal size and are adjacent to each
other, with no gaps. Each bin is represented by a bar, where the height of the
bar reflects the frequency or count of data points within that interval
HistogramChartProps
, , <>
Name | Type | Default | Description |
---|---|---|---|
data | [] | - | Data object for the histogram chart |
height? | | | 300px | Chart height. When a number is specified, it's treated as pixels, otherwise a valid height string is expected. |
width? | 100% | Chart width. A number in pixels is expected. Otherwise, it will take the full width of the container | |
seriesActions? | (series: , bin: ) => | - | Actions to be shown in the legend and tooltip actions |
truncationMode? | 'middle' | Truncation mode to use (start, middle, end) Applied to all the parts that truncate text. | |
colorPalette? | | | "categorical" | Color palette to be used for the bar category. |
loading? | false | Show the loading indicator when truthy. | |
valueRepresentation? | "absolute" | The way values are represented. "absolute" will display the value as it is, and "relative" displays a percentage value considering the other dimensions values within a categories. | |
infiniteZoom? | false | Enables infinite zooming |