Hi,starting from one DataTable I want to group its rows on clicking event.I
am trying to use the function google.visualization.data.group() with this
code :
var newtable = google.visualization.data.group(
table,
[0],
[{'column': 1, 'aggregation':
google.visualization.data.sum, 'type': 'number'},
{'column': 2, 'aggregation':
google.visualization.data.sum, 'type': 'number'},
{'column': 3, 'aggregation':
google.visualization.data.sum, 'type': 'number'}]
);
But firebug show me this error:
TypeError: a[Bb] is not a function
In detail the portion of code is:
("google.visualization.data.group",function(a,b,c){function
d(a,b,c,d){return b[I](m,c[E](d,a))}var
f=[],h=[];Bo(b,function(a){if(Rn(a))f[y](a);else if(Kn(a)==xl){var
b=a.column;il in
a&&h[y]([b,{calc:Zn(d,b,a.modifier),type:a[B],label:a[Ec],id:a.id}]);f[y](b)}});if(0!=h[F]){for(var
l=new
google[H][Nd](a),q=l.getViewColumns(),u=a[ud](),C=0;C<u;C++)Bo(h,function(a){q[a[0]]=a[1]});l[Gc](q);a=l}var
D=new google[H].DataTable,N=[];Bo(f,function(c,d){var
f=a[Bb](c),h=b[d][Ec]||a[bd](c);D[Xd](f,h,b[d].id);
N[y](f)});c=c||[];Bo(c,function(b){var
c=b.column,c=b[Ec]||a[bd](c);D[Xd](b[B],c,b.id)});var
da=[];Bo(f,function(a){da[y]({column:a})});for(var
La=a[dd](da),rb=[],ra=0;ra<c[F];ra++)rb[y]([]);for(ra=0;ra<La[F];ra++){Bo(c,function(b,c){rb[c][y](a[E](La[ra],b.column))});l=n;if(ra<La[F]-1){l=k;for(u=0;u<f[F];u++){var
C=a[E](La[ra],f[u]),Pb=a[E](La[ra+1],f[u]);if(0!=google[H].datautils.compareValues(N[u],C,Pb)){l=n;break}}}if(!l){var
ha=D.addRow();Bo(f,function(b,c){D[wd](ha,c,a[E](La[ra],b))});var ia=
b[F];Bo(c,function(a,b){var
c=a.aggregation[I](m,rb[b]);D[wd](ha,ia+b,c)});for(l=0;l<c[F];l++)rb[l]=[]}}return
D});
Anyone has ever got the same error?
Can you suggest me how to solve?
Thanks in advance.
Regards
Rita
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api.
For more options, visit https://groups.google.com/groups/opt_out.