It would probably be less efficient.  What you *may* be able to get to work 
is something like this:

1) draw the table
2) create sparklines
3) copy the contents of the sparkline cells back into the DataTable 
*before* any sorting occurs

ie, if the sparklines are in the second column, you could try this:

// nth-child is 1-indexed, so second cell is 2, not 1
var cells = $('#table').find('td.google-visualization-table-td:nth-child(2)'
);
for (var i = 0; i < cells.length; i++) {
    data.setFormattedValue(i, 1, $(cells[i]).html());
}​ 

You will probably need to have the allowHTML option set to true to make it 
work.

On Monday, March 26, 2012 4:23:55 PM UTC-4, NA wrote:
>
> Ok, based on what I've seen, that sounds right.  
>
> I could put the jQuery code inside each the datatable cell, so that each 
> cell contains its own jQuery code that renders only its own contents.  I'm 
> pretty sure that would work, but I don't think it would be any more 
> efficient than the workaround I'm currently using.  
>
> thanks very much for the assistance,
> *
>
>
> *

-- 
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/-/hDJJQvhFprgJ.
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/google-visualization-api?hl=en.

Reply via email to