If I understand what is going on in the background correctly, the table actually refreshes the contents every time you sort, so unless the sparklines HTML/CSS/SVG code (whatever actually renders them) exists within the DataTable, it will get wiped out on every refresh.
On Monday, March 26, 2012 3:28:35 PM UTC-4, NA wrote: > > I have a table that has a column of type 'string'. That column has a span > element that is used to construct a jQuery sparkline. It's contents look > something like: > > <span class='hitsChart' values='1,2,3,4,5,6,7' ></span> > > When the chart is first rendered, the sparklines render as well. But when > I sort the table (on any of the columns), the sparklines disappear. > > Anyone know why? I've also tried calling > jQuery.sparkline_display_visible() after sorting but that didn't help. The > only fix was to re-draw the sparklines, which is rather slow. > > Any ideas? > > * > > > * -- 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/-/2C-ko1E55zYJ. 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.
