Other than using the Column chart and naming appropriately is it possible to create histograms in google chart api?
Other than using the Column chart and naming appropriately is it possible to create
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Google Charts does not have a histogram chart, since it is just a visualization library you will have to modify the Column Chart to suit your needs. However, I suspect the reason you are not satisfied with column chart is because of the column spacing, which doesn’t look very histogram-like. So I will answer this question first:
No, not at this time. See this quote from the Google Charts Community
So it is do-able but will take some extra work from you. You can also play around with the
chartAreaconfiguration option which will have some influence on the column spacing.However, the original question may have a different answer actually.
While you cannot control the spacing between sets of columns in a Column Chart, you can get the columns pressed up almost to one another by specifying them as different columns, and then setting each column’s color to the same color in the configuration options.
Here is a simple 3-column histogram:
Notice you have 1 row with 3 columns that are each colored
'red'. The downside to this is that you lose out on the labels along the x-axis telling you which column represents what. Again, you will have to have some sort of logic to construct this histogram and populate the data the way you want as well.So the long story short is Google Charts doesn’t have a Histogram and while it is possible with a Column Chart, you might consider looking into a different library.