that is because the page is using _collections_. there are two collections on the page: the default collection of nobelists+disciplines and the "disciplines" collection of disciplines. the bar chart is using the disciplines collection via the "collectionID" attribute; the facets are filtering the default collection (and in fact, are only relevant to the nobelists).

I think what you would like to do is filter the nobelists, then use the bar chart to plot how many nobelists are selected in each discipline. Unfortunately this is not currently possible. The bar chart is designed to take a collection of items, to make a row for each item, and to compute a value for each item. the way i have it set up, the values are the disciplines and the value is the number of nobelists with that discipline. This is done using the count(!discipline) function. Unfortunately there is no way in the exhibit function language to specify that you want the number of nobelists _currently filtered_ that have the given discipline.

On 4/27/2011 11:49 AM, Benny wrote:
Thanks Karger,

This is certainly how I want it to look. But I cannot comprehend why
the bar chart is not tied to the facets, that it doesn't change when
the selections in the facet change.

This is a wonderful library and I thoroughly enjoyed using it so far.
Hearty thanks to all those involved in this so far!

On Apr 6, 2:44 pm, David Karger<[email protected]>  wrote:
Here's a quick hacked example of the kind of thing you want.  Looking at
the source will hopefully provide enough 
guidance.http://people.csail.mit.edu/karger/Exhibit/Nobelists/nobelists.html

On 4/3/2011 9:44 AM, Thamizh Vaanan wrote:







Hi,
I would like to generate a Bar chart (or even a tabular view to start
with) to list each property against its count (basically similar to
the information displayed on facets). To explain using the "Nobel
list" example from tutorial:
"I need to create a bar chart showing number of Nobel prize winners
from each discipline (or grouped by any of the properties for that
matter)"
Is it possible to achieve that without populating the json with the
necessary meta data (i.e, count the Nobel winners per discipline and
feeding it in to the json). Please excuse if this is a n00b question,
I really did try my best to find it out from existing scattered
documentation.
--
N.Thamizhvaanan
--
You received this message because you are subscribed to the Google
Groups "SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.

--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to