What is the level of effort to write a new view? I will be more than happy
to contribute to this framework with that aggregated view if possible.
Any tutorials or demos to write a new view? If not, if you have time I can
put some effort in documenting a wiki to write a custom View too. please
let me know.

On Wed, Nov 9, 2011 at 10:19 AM, David Karger <[email protected]> wrote:

> I don't see an easy way to do what you want. Exhibit is focused primarily
> on showing _collections_ and does not in itself provide powerful operators
> for computing aggregate functions.
>
> Two things hint at the kind of functionality you'd like.  Exhibit does
> have an "expression language" that can be used to aggregate values _inside
> a lens_, so for example to sum the lengths of all a presidents' terms of
> office in http://trunk.simile-widgets.**org/exhibit/examples/**
> presidents/presidents.html<http://trunk.simile-widgets.org/exhibit/examples/presidents/presidents.html>:
>
>    add(foreach(.presidency, date-range(.inDate, default(.outDate, now()),
> 'day'))),
>
> But lenses cover individual items, not collections.  More sophisticated
> aggregation is generally done by individual views, and nobody has created a
> view that aggregates by summing the way you want.
>
>
>
> On Wednesday, November 09, 2011 10:09:25 AM, KC wrote:
>
>>
>> Any Idea on how to add any method to enable this summary/pivot table
>> basing only on the existing JSON?
>> Please guide me to a place to add/edit code.
>>
>>
>> On Nov 7, 9:50 am, David Karger<[email protected]> wrote:
>>
>>>
>>> I'm afraid I can't understand what you're trying to do. Perhaps an
>>> example would help.
>>>
>>> On 11/7/2011 9:31 AM, KC wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>> Hi,
>>>> Thank you very much for this amazing framework to all the
>>>> contributors.
>>>> I have a data set in JSON file with 40+ properties for each item. I am
>>>> trying to add a small summary table on the page grouped by a specific
>>>> property, just like a SQL query group by feature with one-row for each
>>>> specified property tyep. I am very new to this framework and couldn't
>>>> find this in the documentation. Let me know if I can add some code
>>>> anywhere to enable this feature.
>>>>
>>>
>>>
>>>
>>>> -KC
>>>>
>>>
>>>
>>


-- 
-KC Reddy

-- 
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