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

  • Home
  • SEARCH
  • 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 8438179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:38:17+00:00 2026-06-10T07:38:17+00:00

I using the Google Chart for in my HTML5 Project. which takes the JSON

  • 0

I using the Google Chart for in my HTML5 Project. which takes the JSON values ( from DB ) to plot the graph.

my need is to have a scroll bar if the datas are more than 5 to 6 in the JSON Value.
I have created the sample attached link via JSFiddle.

currently i have given 22 values. i need the same effect when the JSON value has 3 or 4 values. There shd not be any change in the bar width it should maintain the same width even if the JSON has 50 values.

Kindly provide me the solution thank you so much. 🙂

Here is the link : – http://jsfiddle.net/gK9r7/

  • 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-10T07:38:19+00:00Added an answer on June 10, 2026 at 7:38 am

    Here’s the solution: http://jsfiddle.net/hsakX/

    Set the bar.groupWidth option to fix the width of the bars. Then make the width of the chart a function of the bar-width and the number of bars to be displayed:

    var options = {            
        title: 'Company Performance',
        hAxis: {title: 'Year', titleTextStyle: {color: 'red'}},
        width: data.getNumberOfRows() * 65,
        bar: {groupWidth: 20}
    };
    

    Set the overflow-x on the containing div to scroll:

    #chart_div {
     overflow-x: scroll;
     overflow-y: hidden;     
     width: 500px;
     height: 550px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a Google Line Chart to graph values pulled from a database
I am populating my Google chart using JSON currently, but I need to customize
I have been trying to plot these on a scatter chart using google api.
I'm developing an application which draws some charts and I'm using Google Chart. After
I am trying to create a Google line chart using their API and JSON.
Hi I am using http://code.google.com/apis/chart/docs/gallery/googleometer_chart.html I have: <img src=http://chart.apis.google.com/chart?cht=bvg&chs=250x150&chd=s:egbdf&chxt=x,y&chxs=0,ff0000,12,0,lt|1,0000ff,10,1,lt&chm=o,000000,0,-1,10|V,000000,0,-1,1:15,,:4:10|H,000000,0,-1,3:9,,:8:17&chxl=0:|E|G|B|D|F usemap =#chart /> <map name='chart'>
I have a Google Chart (using the Google Visualization API , not Google Charts
Im looking for some help creating a graph using the google chart API I
I am using google chart and I have the following example: <html> <head> <script
Using Google motion chart for generating graph in django. i came accross with date

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.