Google Java Datasource Library. ULocale problem.

17 views
Skip to first unread message

Peter Br.

unread,
Jan 27, 2012, 8:29:18 AM1/27/12
to google-visua...@googlegroups.com
I made a datasource using Java library. I receive data from external source, apply queries and do some other processing, and than return data to user over HTTP or store it in a CSV file.
The problem is that CsvRenderer.renderDataTable method needs a locale, and use it to format numbers. That's a problem, because if user has a different locale, numbers are get misinterpreted.
Is there a way to render a CSV file from DataTable without formatting numbers?

BTW, I fought of modifying a ULocale instance to remove grouping separator, but didn't find any way to do it.

Viz Kid

unread,
Jan 30, 2012, 2:23:02 AM1/30/12
to google-visua...@googlegroups.com

Perhaps you can use a ValueFormatter before converting the DataTable into a csv, where you change the formatting of numbers to be without the group separator.
The csv output is not targeted as a serialized way to store the data in, and therefore this behavior is not what you expect.

  Viz Kid

--
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/-/9vjHPqtkz2IJ.
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.

Reply all
Reply to author
Forward
0 new messages