dataTableToCsv output format: can I control it?

96 views
Skip to first unread message

Andrea Grillini

unread,
Sep 18, 2017, 7:10:12 PM9/18/17
to Google Visualization API
I notice dataTableToCsv produces an output where columns values in the same row are separated with commas.
As a result, when somebody opens the csv file with Microsoft Excel columns are not recognized automatically as I could see with LibreOffice Calc.
I saw in order to see Microsoft Excel automatically find the columns semicolons instead of commas are needed.
Is there a way to tell dataTableToCsv to use semicolons instead of commas?

Thanks in advance! :-)


A.

Daniel LaLiberte

unread,
Sep 20, 2017, 12:17:38 PM9/20/17
to Google Visualization API

dataTableToCsv escapes any commas embedded in the data values by quoting the whole value, to avoid confusion with the comma separator. There is not a way to specify an alternative separator. You'd have to convert the csv file to another format outside of Google Charts.

While commas and double quotes are handled correctly, I notice that newlines (\n) are not.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/7418172e-5fca-4f33-8ba4-644f9dc6d376%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages