Builds a bar chart of a histogram: one touching bar per bin, labelled "lo-hi".
<insightdock/histogram.h>
[[visibility]]
BarChart
make_histogram_chart(
std::vector<double> const& values,
HistogramOptions const& options = {},
std::string series_name = "Count");
The result is an ordinary BarChart, so titles, colors, data labels and export work as usual. Pass series_name to rename the single "Count" series (shown in the legend).
| Name | Description |
|---|---|
| values | A standard container which offers fixed time access to individual elements in any order. |
| options | How compute_histogram bins its input. |