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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:44:37+00:00 2026-05-17T23:44:37+00:00

I am using a Ruby wrapper which appears to be correct for using Google

  • 0

I am using a Ruby wrapper which appears to be correct for using Google Visualizer:

https://github.com/jeremyolliver/gvis

However, I keep getting this particular error:

First and second columns must be entity and time 

However, the data I am passing are entity and time as far as I understand:

  <% chart_data = [
 ["Apples", Date.new(1998,1,1), 1000,300,'East'],
 ["Oranges", Date.new(1998,1,1), 950,200,'West'],
 ["Bananas", Date.new(1998,1,1), 300,250,'West'],
 ["Apples", Date.new(1998,2,1), 1200,400,'East'],
 ["Oranges", Date.new(1998,2,1), 950,150,'West'],
 ["Bananas", Date.new(1998,2,1), 788,617,'West']
 ] %>

<% visualization "my_chart", "MotionChart", :width => 600, :height => 400, :html => {:class => "graph_chart"} do |chart| %>
<%# Add the columns that the graph will have
<% chart.string "Fruit" %>
<% chart.date "Date" %>
<% chart.number "Sales" %>
<% chart.number "Expenses" %>
<% chart.string "Location" %>

<% chart.add_rows(chart_data) %>

<% end %>

I’m not sure how to debug because I’m not getting enough information to work with in the errors….

  • 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-05-17T23:44:37+00:00Added an answer on May 17, 2026 at 11:44 pm

    Should have gone with highcharts 🙂

    The way the source code has it is a little different.

    add_rows seems to be the method you call on the chart_object and then you pass your array of arrays as a method

    <% chart.add_rows([
            ["Apples", Date.new(1998,1,1), 1000,300,'East'],
            ["Oranges", Date.new(1998,1,1), 950,200,'West'],
            ["Bananas", Date.new(1998,1,1), 300,250,'West'],
            ["Apples", Date.new(1998,2,1), 1200,400,'East'],
            ["Oranges", Date.new(1998,2,1), 950,150,'West'],
            ["Bananas", Date.new(1998,2,1), 788,617,'West']
        ]) %>
    

    so this plugin creates a chart object with the add_rows method for you to pass in your arrays.

    <% chart.add_rows([this is where you pass your arrays]) %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having my first go at using Google charts using a Ruby wrapper called
I'm trying to create an API wrapper for Issuu using ruby and am running
I'm using the Highrise API and Ruby wrapper, but my problem is that (besides
I'm using ruby 1.9 and trying to find out which regex I need to
I am using ruby on rails 2.3.9. The rake db:migrate passed successfully. However when
I'm building a pageview counter for my app using the Garb Ruby wrapper for
Using Ruby I'm trying to split the following text with a Regex ~foo\~\=bar =cheese~monkey
I have been using Ruby for a while now and I find, for bigger
I am using Ruby on Rails. I want to create a filter field on
I am using ruby on rails with a MySQL backend. I have a table

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.