This React Histogram Chart example visualizes final examination results. The number of students between each interval is shown in data labels.
In this example, you can see how to render and configure the histogram chart. The histogram chart is a bar (column) chart used for frequency distribution in which the widths of the bars are proportional to classes into which variables have been divided and the heights of the bars are proportional to class frequencies. The DataLabel property is used to present details on individual data points.
Tooltip is enabled in this example. To see the tooltip in action, hover the mouse over a point or tap a point in touch enabled devices.
Injecting Module
Chart component features are segregated into individual feature-wise modules.
To use histogram series, you should inject the HistogramSeries
module using the Chart.Inject(HistogramSeries)
method.
More information on the histogram series can be found in this documentation section.