Thanks David for your reply. I came across these examples but my apology for asking an abstract question.
Actually, I have pre-formated JSON file and wants to visualize the data using
Exhibit. The JSON schema looks like this.
{
books: [
{
name: "Exhibit",
....
},
.....
]
}
When I try to visualize such JSON file using Exhibit, it shows O results in
fact there are 100's of book entries. When I change the items name "books" to
"items" then it show the correct no. of result but gives an error message "Data
can't be plotted because item doesn't have label or id".
I have skimmed through the source but couldn't find out where to change this
limitation.
Thanks.
Asif
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of David Huynh
Sent: Thu 8/2/2007 6:33 PM
To: General List
Subject: Re: Changing Exhibit Behaviour!
Asif, Mohammad wrote:
> Is there any way to set Exhibit-API to browse JSON not by "items" lists but
> some other lists e.g. "books"?
>
Certainly. Please see this example:
http://simile.mit.edu/exhibit/examples/presidents/presidents.html
Which shows "presidents".
In one data file,
http://simile.mit.edu/exhibit/examples/presidents/presidents.js
look for
type: 'President'
Also check the other data file
http://simile.mit.edu/exhibit/examples/presidents/schema.js
to see how to go from 'President' to 'Presidents' (plural).
Look at <body onload="..."> in the HTML code.
Cheers,
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
<<winmail.dat>>
_______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
