> wrote: > You'll have to code it yourself, then, sorry <:o( -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to google-visua...@googlegroups.com. To unsubscribe from this group, send email to google-visualizati...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/gzW25FBHOooJ.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
var weightTotal=0;
for (var i=0; i<(tableData.getNumberOfRows()-1); i++)
{
weightTotal += tableData.getValue(i, 4);
}
tableData.setValue(tableData.getNumberOfRows()-1, 4, weightTotal);
double sum = Convert.ToDouble(dt.Compute("SUM(datatable_Column_Name)", string.Empty));
//Datatable Column Name Put Only
On Thursday, 22 September 2011 22:57:39 UTC+10, Steffan Hoeke wrote:
I was aware that I can use calculated columns, but that's not what i want ;)
I'm specifically looking for a way to add a totals Row (as a footer in the table), and since a googler indicated in an older topic that it was on their todo list hoped it would have been implemented by now :)
Thanks for your response.
var mytable_foot = jQuery('<tfoot>').appendTo("#mytable table");
mytable_foot.append('<tr>'+
'<th class="google-visualization-table-td">Total</th>'+
'<th class="google-visualization-table-type-number google-visualization-table-td"><?php echo $count;?></th>'+
'<th class="google-visualization-table-type-number google-visualization-table-td">$ <?php echo number_format($sales,2);?></th>'+
'<th class="google-visualization-table-type-number google-visualization-table-td">$ <?php echo number_format($gp,2);?></th>'+
'<th class="google-visualization-table-type-number google-visualization-table-td">$ <?php echo number_format($svc_sales,2);?></th>'+
'<th class="google-visualization-table-type-number google-visualization-table-td">$ <?php echo number_format($svc_gp,2);?></th>'+
'</tr>');