Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:13:18+00:00 2026-06-05T17:13:18+00:00

Other than using the Column chart and naming appropriately is it possible to create

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:13:20+00:00Added an answer on June 5, 2026 at 5:13 pm

    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:

    Can you control the spacing between columns in a Column Chart?

    No, not at this time. See this quote from the Google Charts Community

    There’s no support in the API for controlling the spacing between bars. You might be able to hack it if you’re willing to dig into the chart’s SVG.

    So it is do-able but will take some extra work from you. You can also play around with the chartArea configuration option which will have some influence on the column spacing.

    However, the original question may have a different answer actually.

    Can you create a histogram-like chart using a Column Chart?

    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:

    var data = google.visualization.arrayToDataTable([
        ['x', '1-10', '11-20', '21-30'],
        ['', 3, 5, 4]
      ]);
    
      // Create and draw the visualization.
      new google.visualization.ColumnChart(document.getElementById('visualization')).
          draw(data,
               {title:"My Histogram",
                width:600, height:400,
                hAxis: {title: null},
                colors: ['red','red','red'],
                legend: {position: 'none'}
               }
          );
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I get NHibernate to save or update using column other than the
Other than using browser,How can I get the public key of a websites which
Is there any way to install C# libraries other than using the Package Manager
Using MVC EF, how would I filter results by a field other than the
Other than as a modulus operator, what does the percent sign do in PHP?
other than not encrypting, i have no choice but to have the RSA private
Other than reading the GetFileName() file and reading to line GetFileLineNumber() of a stackframe
Other than that I don't know if I can reproduce it now that it's
Other than the fact that PNG is a more common image format, is there
Other than quartz schedular, what are other popular job services in the Java world?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.