the vector of values (want several per interval)
the number of intervals (typically 5 to 100)
title of the histogram
Create a canvas on which to draw the histogram.
Convert value to string and cut out the first four characters.
Convert value to string and cut out the first four characters.
the value to convert and cut
Compute coordinates (x, y, w, h) for each of bars used to draw the histogram.
Compute the counts for each interval in the histogram.
Convert a Histogram to a string.
Convert a Histogram to a string.
The
Histogram
class takes a vector of values, counts the number of values in each of several intervals and displays the counts vertically in a histogram.