Steen,

Glad you found a solution, and thanks for posting your update.

You've actually given me an idea for solving another problem when using the
ChartRangeFilter, which is to set the view window of the chart that is
being filtered based on the range of the ChartRangeFilter.  This seems
redundant, but it is actually not because the filtered data might end up
being a much smaller subset of that range.


On Thu, Oct 24, 2013 at 7:12 AM, Steen Horshauge <[email protected]> wrote:

> Now I have solved the problem
>
> google.visualization.events.addListener(control, 'statechange',
> function(event) {
>
> var data2 = data.getFilteredRows([{column: 0, minValue:
> control.getState().range.start, maxValue: control.getState().range.end}]);
> var value = 0;;
>
> for (var i  = 0; i < data2.length; i++) {
>
>     value = value+ data.getValue(data2[i],1);
> }
> document.getElementById('veight').value = value;
>
> });
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   562D 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to