Your data needs to look something like this:
{
"items": [
{ label: "Peter Pan",
...
},
...
]
}
The "label" property is required.
I'd recommend starting skimming through the basics
http://simile.mit.edu/wiki/Exhibit/For_Authors
Or at least this page
http://simile.mit.edu/wiki/Exhibit/Creating%2C_Importing%2C_and_Managing_Data
And then there are plenty of examples...
http://simile.mit.edu/wiki/Exhibit/Examples
Cheers,
David
Asif, Mohammad wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general