A histogram is a chart that groups numeric data into bins, displaying the bins as segmented columns. They're used to depict the distribution of a dataset: how often values fall into ranges.
Google Charts automatically chooses the number of bins for you. All bins are equal width and have a height proportional to the number of data points in the bin. In other respects, histograms are similar to column charts.
(see the doc of Google)
Data format
There are two ways to populate a histogram datatable. When there's only one series:
Column |
Type |
Description |
0 |
string |
Name |
1 |
Number |
values |
...and when there are multiple series: (Not tested)
Column |
Type |
Description |
0 |
Number |
values |
1 |
Number |
values |
N |
Number |
values |
Column |
Type |
Description |
0 |
string (discrete) or
number, date, datetime, or
timeofday (continuous) |
X-axis group labels (discrete) or X-axis values (continuous) |
1 |
Number |
Line 1 values |
N |
Number |
Line N values |
Chart options
Each option is separated by a '|' or '!' (for Mediawiki).
Name |
Default |
Description |
width |
100% |
Chart width |
height |
|
Chart height |
Others... |
|
You can use the configuration options of Google. See the doc |
Exemple