Never mind... sorting works as expected. I was thrown off by a typo in the example's source:
data.setCell(1, 1, 8000, '$800'); should be (one extra zero on the formatted value): data.setCell(1, 1, 8000, '$8000'); thanks, -Travis On Sep 30, 4:01 pm, Travis Gebhardt <[EMAIL PROTECTED]> wrote: > It looks like the Table visualization is sorting columns by their > formatted values rather than their actual values. > > For instance, look at the first table on this > page:http://code.google.com/apis/visualization/documentation/gallery/table... > > Click on the "Salary" column once to sort the table in ascending order > by salary. The salary column will now look like this: > > $7,000 > $800 > $10,000 > $12,500 > > Note that $7,000 comes before $800. It appears that the sort was done > by lexicographical order on the formatted value rather than by > numerical order on the actual value. > > I would have expected it to instead have sorted like this: > > $800 > $7,000 > $10,000 > $12,500 > > The actual values given in setCell() calls were 800, 7000, 10000, and > 12500. Shouldn't the sort use these instead? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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 -~----------~----~----~----~------~----~------~--~---
