google spreadsheets with exhibit 3

841 views
Skip to first unread message

lostexpectation

unread,
Oct 14, 2012, 1:52:54 PM10/14/12
to SIMILE Widgets
trying to use google spreadsheets with exhibit 3

trying to use example where nothing else changes, can't really find
one

so converted an exhibit 3 example
http://www.simile-widgets.org/exhibit3/examples/presidents/presidents.html
data https://docs.google.com/spreadsheet/ccc?key=0AqAEiinGYynOdFd3dDRBWFJXUllSRnZzZEYxNEVTT3c
swapping indatae outdate for birth death just to have something on the
timeline

http://dublinstreams.com/tds/exhibit3/presidents3.html

but getting an error

Uncaught TypeError: Object #<Object> has no method
'makeISO8601DateString' exhibit-scripted-bundle.js:1
Exhibit.Importer.JSONP.GoogleSpreadsheet.transformJSON


ps some of the exhibit3 examples have the old 'ex:label' instead of
'data-ex-label' will the old way still work if trying to convert
previous exhibits

Piezanowski

unread,
Oct 21, 2012, 9:19:32 AM10/21/12
to simile-...@googlegroups.com
I also have an issue with the Google Spreadsheet loader in Exhibit 3.
The "working" pop-up seems to keep loading without any result.
It was working fine in Exhibit 2.0.

I am using the code below to load my spreadsheet

<link rel="exhibit/data" 
       type="application/jsonp"
       ex:converter="googleSpreadsheets" />

David Karger

unread,
Oct 21, 2012, 12:45:53 PM10/21/12
to simile-...@googlegroups.com, lostexpectation
I've started looking at this; it's unveiled a number of separate
problems. I have suggested fixes at the end of the story.
The simplest problem was the reported one: a failure to include the date
conversion function. I've fixed this with an instance of the api at
http://people.csail.mit.edu/karger/Exhibit3/api/exhibit-api.js

Unfortunately this was only the tip of the iceberg. In fact, it wasn't
even very important. In your spreadsheet, you've created duplicate
"birth" and "death" columns, and filled them with proper iso8601-format
dates which exhibit doesn't need to convert. So if you'd just deleted
the "traditional format" date columns, then the iso8601 converter
wouldn't have been needed and you wouldn't have seen the error. As it
is, even with the parsing corrected, your newer columns, since they have
the same column headings, overwrite the traditional date columns.

With the data conversion problem out of the way, the next problem is
that your spreadsheet does not contain "presidency" data. Presidents
don't have their own indates and outdates; instead they have
presidencies where each presidency has an indate and an outdate (this
was forced upon us by Grover Cleveland, who had the gall to be elected
for two non-contiguous terms). Your spreadsheet only holds the
presidents, and not their presidencies, so when exhibit tries to look up
the presidency data it finds nothing. That is why none of the
days-in-office etc. statistics are showing in the tabular view.

Finally, there appears to be a problem with extension loading. Something
is preventing the timeline (and possibly the map) from signaling that
loading is done and allowing exhibit to proceed. But if you remove the
timeline (and possibly the map) you can at least verify that data is
being properly loaded by looking at the tabular view.

So, if you'd like to progress on this issue, you should do one of the
following:

Option 1 (skip date parsing)
* remove the "traditional date" columns from your spreadsheet
* add another spreadsheet (or json file) providing the "presidency" data
that is missing (with dates in UTC of course)
* verify the released version of exhibit works on this data (in tabular
view) without the extensions
* check if perhaps its extension loader will work with the other
problems solved

Option 2 (try to use date parsing)
* use my fork of the exhibit api at
http://people.csail.mit.edu/karger/Exhibit3/api/exhibit-api.js
* remove the UTC data columns from your spreadsheet
* add another spreadsheet (or json file) providing the "presidency" data
that is missing (with dates in traditional format if you like)
* verify the forked version of exhibit works on this data (in tabular
view) without the extensions
* check if perhaps its extension loader will work with the other
problems solved

Piezanowski

unread,
Oct 21, 2012, 1:07:27 PM10/21/12
to simile-...@googlegroups.com, lostexpectation
Thks,
Just to say I am using a map view. 
I tried loading without the map view, only with the facets, but it is still not responding.

David Karger

unread,
Oct 21, 2012, 1:07:35 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
Please post a link to your exhibit.
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simile-widgets/-/4EpJcfieKjQJ.
To post to this group, send email to simile-...@googlegroups.com.
To unsubscribe from this group, send email to simile-widget...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.

Piezanowski

unread,
Oct 21, 2012, 1:16:21 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
Here it is http://ambascience.co.uk/coop2/

and the spreasheets are here goo.gl/M7rko

Even with the large number of items, It was loading fine with Exhibit 2.0.

David Karger

unread,
Oct 21, 2012, 1:16:16 PM10/21/12
to simile-...@googlegroups.com, lostexpectation
(You can see the spreadsheets import happening successfully here:
http://people.csail.mit.edu/karger/Exhibit3/demos/presidents/presidents.html
), although the result is disappointing since presidency data is absent
and extensions aren't loaded.

David Karger

unread,
Oct 21, 2012, 1:17:30 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
Try switching to the forked version of the api that I mentioned in my email---that fixes the data-string-parser issue.
To view this discussion on the web visit https://groups.google.com/d/msg/simile-widgets/-/ZP5tRxjDdF4J.

Piezanowski

unread,
Oct 21, 2012, 1:29:45 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
Ok, Import is working fine with your version but I am still unable to render the map view.
Maybe a problem with the map extension.

David Karger

unread,
Oct 21, 2012, 1:43:49 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
Google maps (at least version 2) is working on exhibit3, as can be seen here:
http://simile-widgets.org/exhibit3/examples/presidents/presidents.html
To view this discussion on the web visit https://groups.google.com/d/msg/simile-widgets/-/Z8PJ6KFK2moJ.

Piezanowski

unread,
Oct 21, 2012, 2:03:46 PM10/21/12
to simile-...@googlegroups.com, Piezanowski, lostexpectation
The map in the link below is not working on my Google Chrome but is rendering ok with Firefox and IE8.
Same with my map using GMap3.

David Karger

unread,
Oct 30, 2012, 3:58:57 PM10/30/12
to ., SIMILE Widgets
Here's one.  I had to make another tweak to get it to work, that hopefully didn't break anything else.  We definitely need to take a look at how to handle date parsing in general.
http://people.csail.mit.edu/karger/Exhibit/Sandy/index.html

On 10/30/2012 3:53 PM, . wrote:
ok thanks, the date converter was the problem, serves me for right trying to give you a link to look at, spent time creating an exhibit to replicate the problem and created more, the presidency exhibit wasn't the one I was actually having problems with it was another, but wanted to try and isolate the problem and created irrelevant ones.  

still can't get to fully work

a working example with google spreadsheets and exhibit 3 would be nice

Jeff Roehl

unread,
Oct 30, 2012, 4:02:22 PM10/30/12
to simile-...@googlegroups.com
http://people.csail.mit.edu/karger/Exhibit/Sandy/index.html

That's very cool!
 
Thanks
Jeff Roehl
jro...@yahoo.com
(818) 912-7530

From: David Karger <kar...@mit.edu>
To: . <expecta...@gmail.com>; SIMILE Widgets <simile-...@googlegroups.com>
Sent: Tuesday, October 30, 2012 12:58 PM
Subject: Re: [Simile-Widgets] google spreadsheets with exhibit 3

--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.

Thiru

unread,
Mar 20, 2014, 1:49:44 AM3/20/14
to simile-...@googlegroups.com
Hi all,

I built a web page using exhibit 2.2. My web page is http://njadapt.rutgers.edu/resources/climate-adaptation-directory - please scroll to the bottom where the iframe is present which has the exhibit page.I am having browser compatibility issues for this. Data loads from a google spreadsheet.

So I am hoping upgrading to exhibit 3.0 will solve the browser issues. But with 3.0, only the "loading" animation displays along with static HTML. The actual data never loads. 
When I read through this forum and used http://people.csail.mit.edu/karger/Exhibit3/api/exhibit-api.js it seemed to work fine. (Browser compatibility yet to be tested.)
Do you guys think that this is the best location to access the API? What about the official exhibit api? Is it going to get updated with fixes?

Please let me know your thoughts.

Thiru

Neha Bajaj

unread,
Apr 30, 2014, 7:43:23 AM4/30/14
to simile-...@googlegroups.com
Hi All,

I just started working with exhibit library. I need to make something similar to president map view. So, I thought , I should first try with the same data. I don't what is going wrong, the map appears for a second and then just disappears. and when I check n dev tool, I get errors. I have attached a snapshot, please have a look and let me know what is wrong. Thanks!
err.PNG

David Karger

unread,
Apr 30, 2014, 7:51:05 AM4/30/14
to simile-...@googlegroups.com
You are linking to code on static.simile.mit.edu which is no longer supported.  You need to use api.simile-widgets.org .  Where did you find instructions to use static.simile.mit.edu?  We need to remove them.
--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.

To post to this group, send email to simile-...@googlegroups.com.

NEHA BAJAJ

unread,
Apr 30, 2014, 9:04:07 AM4/30/14
to simile-...@googlegroups.com
Hi David, 
Thanks for your response. I found the instructions here http://simile.mit.edu/wiki/Exhibit/Map_View and http://simile-widgets.org/exhibit3/examples/presidents/presidents.html . I still don't understand, what I am supposed to do.
--
Thanks & Regards,
Neha Bajaj

David Karger

unread,
Apr 30, 2014, 9:48:20 AM4/30/14
to simile-...@googlegroups.com
the instructions at simile-widgets.org are up to date.  there's good getting started documentation here: http://simile-widgets.org/wiki/Getting_Started_with_Exhibit
also http://people.csail.mit.edu/karger/Exhibit/CAR/HandsOn/

mwra

unread,
May 9, 2014, 6:37:02 AM5/9/14
to simile-...@googlegroups.com
I note that all the Exhibit demos here http://simile-widgets.org/wiki/Examples_of_Simile_Widgets#Exhibit, bar the MLB one don't connect. Certainly, all the ones at simile-widgets.org returns what looks like a custom 404 page (there's no mention of 404).

Trying to figure out if it's worth the hassle of gong from the old Timeline to Exhibit as I only really want the timelining functionality.

David Karger

unread,
May 9, 2014, 11:55:32 AM5/9/14
to simile-...@googlegroups.com
Looks like some poor housekeeping during our migration to exhibit 3.  For now, if you replace "exhibit" with "exhibit3" in those urls, you'll get to the right place.  Meanwhile we'll work on fixing the directory structure.

John Bullington

unread,
May 14, 2014, 10:42:43 AM5/14/14
to simile-...@googlegroups.com

I'm not good at this. Trying to just have teachers complete a form and then have the google sheet attached to that form display the data in an exhibit 3 page but can't seem to get the data to display at all. The spreadsheet is public and published (we are a google apps for edu domain). If copied html from other ehibit 3 samples and did substitution but nothing. Can someone look at html code below and advise.

<html> 
<head> 
<title>Shen Educational Website Database</title> 
    <link rel="stylesheet" href="http://www.simile-widgets.org/styles/common.css" type="text/css" /> 
 
 

ex:converter="googleSpreadsheets" /> 
 
<<script src="http://people.csail.mit.edu/karger/Exhibit3/api/exhibit-api.js" type="text/javascript"></script> 
  
     <style> 
       body {
margin-left:20%;
margin-right:20%;
       }
       table.show {
           border:     1px solid #ddd;
           padding:    0.5em;
       }
       div.name {
           font-weight: bold;
           font-size:   120%;
       }
 
   </style> 
 
 </head> 
 <body> 
    <h1>Shen Educational Website Database</h1> 
<br /><br /><br /><br /><br /><br /> 
 
    <table width="100%"> 
        <tr valign="top"> 
 
         <td ex:role="viewPanel"> 
 
<div ex:role="view" ex:viewClass="Tabular"
  ex:columns=".url, .grade, .subject, .description, .username" > 
<table style="display: none;"> 
<tr> 
<td><a ex:href-content=".url"><b ex:content=".url"></b></a></td> 
<td><span ex:content=".grade"></span></td> 
<td><span ex:content=".subject"></span></td> 
<td><span ex:content=".description"></span></td> 
<td><span ex:content=".username"></span></td> 
</tr> 
</table> 
</div> 
 
 
  </td> 
 
 
            <td width="25%"> 
  <h2>Search as you type:</h2> 
               <div ex:role="facet" ex:facetClass="TextSearch"></div> 
<br /><br /><br /> 
 <h2>Filter by:</h2> 
               <div ex:role="facet" ex:expression=".grade" ex:facetLabel="Grade(s)"></div> 
               <div ex:role="facet" ex:expression=".subject" ex:facetLabel="Subject(s)"></div> 
               <div ex:role="facet" ex:expression=".username" ex:facetLabel="Reviewer"></div> 
 
            </td> 
        </tr> 
    </table> 
 </body> 
 </html> 

 

Luis Miguel Morillas

unread,
Jun 16, 2014, 6:07:53 AM6/16/14
to simile-...@googlegroups.com
I thint "?alt=json-in-script"   doesn't work with new google spreadsheets api, does it?

--

luismiguel

.

unread,
Jun 20, 2014, 10:32:15 AM6/20/14
to SIMILE Widgets

.

unread,
Jul 9, 2014, 7:40:34 AM7/9/14
to SIMILE Widgets
ugh i had it working and now its not, getting 'Invalid query parameter value for grid_id.'

Luis Miguel Morillas

unread,
Jul 9, 2014, 8:54:14 AM7/9/14
to simile-...@googlegroups.com

Saludos,

-- luismiguel  (@lmorillas)

.

unread,
Jul 9, 2014, 10:32:54 PM7/9/14
to SIMILE Widgets
why does that work?

.

unread,
Jul 10, 2014, 1:47:09 AM7/10/14
to SIMILE Widgets
seems to problem with how google is dis-improving things in the new sheets, breaks and then says nothing never explains itself 

create old sheets via http://g.co/oldsheets
Reply all
Reply to author
Forward
0 new messages