Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one go about creating an Histogram using the google chart api?

Other than using the Column chart and naming appropriately is it possible to create histograms in google chart api?

like image 247
Usman Ismail Avatar asked Mar 22 '12 17:03

Usman Ismail


People also ask

How do you implement a Google Chart API?

You load some Google Chart libraries, list the data to be charted, select options to customize your chart, and finally create a chart object with an id that you choose. Then, later in the web page, you create a <div> with that id to display the Google Chart. That's all you need to get started.


2 Answers

To add to mattedgod's answer, The column chart can now be created with the bars spaced tightly together, use the option:

bar:  {groupWidth:"100%"};
like image 68
mercator Avatar answered Nov 08 '22 22:11

mercator


Google introduced a couple of days ago an histogram chart : link

like image 40
ic3 Avatar answered Nov 08 '22 20:11

ic3