viewJoinTables.setColumns([0,1,2,3,* {type:'number', label:'Total', func: 
function(groupedValue, rowNum){) return groupedValue.getValue(rowNum,2) * 
groupedValue.getValue(rowNum,3);}*} ]);

(without the *; *in the middle* :)*
Le vendredi 15 mars 2013 14:30:23 UTC+1, Tangred a écrit :
>
> Hello,
>
> sorry if i overlooked, but i did'nt find the answer.
>
> I have a datattable with quantity and unit price for each line, i would to 
> get the total per line in a data view.
>
> product  unit_price quantity *TOTAL*
> AAA          30           2          60
> BBB          40           2          80
> CCC         120          3          360
>
> i find the option to "group by" sum by column but not in a row. 
>
> i tried :
> viewJoinTables.setColumns([0,1,2,3,* {type:'number', label:'Total', func: 
> function(groupedValue, rowNum){); return groupedValue.getValue(rowNum,2) * 
> groupedValue.getValue(rowNum,3);}*} ]);
>
> but all cells in my last column are empty ...
>
> Can you help me ?
>
> Regards
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to