insightdock::charts::make_histogram_chart

Builds a bar chart of a histogram: one touching bar per bin, labelled "lo-hi".

Synopsis

Declared in <insightdock/histogram.h>
[[visibility]]
BarChart
make_histogram_chart(
    std::vector<double> const& values,
    HistogramOptions const& options = {},
    std::string series_name = "Count");

Description

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).

Return Value

Vertical bar chart.

Parameters

Name Description
values A standard container which offers fixed time access to individual elements in any order.
options How compute_histogram bins its input.

Created with MrDocs