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 9220875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:27:00+00:00 2026-06-18T03:27:00+00:00

Using Google Chart Tools with a code like this: <div id=’table_div’></div> <script type=’text/javascript’ src=’https://www.google.com/jsapi’></script>

  • 0

Using Google Chart Tools with a code like this:

<div id='table_div'></div>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:['table']});
google.setOnLoadCallback(drawTable);
function drawTable() {
  var data = new google.visualization.DataTable();
  data.addColumn('string', 'Country');
  data.addColumn('number', 'A');
  data.addColumn('number', 'B');
  data.addColumn('number', 'Total');
  data.addRows([
      ['United States',     19, 115, 134],
      ['United Kingdom',     3,  23,  26],
      ['Germany',            2,  19,  21],
      ['Ireland',            0,   3,   3],
      ['Belgium',            2,   3,   5],
      ['Russian Federation', 0,   2,   2],
        ...
  ]);

  var table = new google.visualization.Table(document.getElementById('table_div'));
  table.draw(data, {showRowNumber: true, page: 'enable', pageSize: '10', sortColumn: 3, sortAscending: false});
}
</script>

It causes a weird issue while paging. Having 38 counties, each page shows:

  • #1 – 10 countries (from 1 to 10)
  • #2 – 28 countries (from 11 to 38)
  • #3 – 18 countries. Somehow, although the second page already listed the rest of the countries, there is a third page that lists countries from 21 to 38, again
  • #4 – 8 countries (from 31 to 38), that were already listed

JSFIDDLE http://jsfiddle.net/HT3St/

I tested the code also on Code Playground and the same issue happened. Is this some known bug that I don’t know?

  • 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-18T03:27:02+00:00Added an answer on June 18, 2026 at 3:27 am

    I had the same problem and I’ve found how to resolve this, I enforce the option again and it resolves the bug:

     var options = {
       alternatingRowStyle:[true],
       pageSize:[20],
       page:['enable']
        };
    
      options['pageSize'] = 20; <- This line fix the problem.
    

    Try it 🙂

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

Sidebar

Related Questions

I am using Google Chart Tools (aka Visualization) 1.1 Library with GWT to display
I'm using GWT and the Google Chart Tools (aka Visualization) 1.1 Library of the
I am using google chart and I have the following example: <html> <head> <script
I am creating charts through Google Chart Tools, in a webpage using the Twitter
I am using Google Chart Tools to display a Table visulisation on my webpage
Using google area chart: http://code.google.com/apis/chart/interactive/docs/gallery/areachart.html Does anyone know how I can freelly manipulate the
I am using Google Chart QR code , I have to send data more
Possible Duplicate: How to change tooltip text for google chart api? I am using
I'm using the Google chart on my website and I would like to pass
I'm using Google Charts Tools, specifically the Pie Chart . Naturally, if a item

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.