highcharts / export-csv

Highcharts plugin to export chart data to CSV
http://www.highcharts.com/plugin-registry/single/7/Export-CSV
MIT License
76 stars 94 forks source link

Plugin does not support full language options #6

Open alesnav opened 10 years ago

alesnav commented 10 years ago

Hello!

This is a nice plugin, thanks for that.

I have a little problem with it, because it does not support global language options for decimal/thousands separators.

Perhaps, this could be not as easy as it seems... because HighCharts uses decimal/thousands separators from language options only on legends (data must use '.' as decimal separator).

Could you get data from graphs after getting language options? This way, maybe it would be possible to format them.

In my case (in Spain), I use ',' as decimal separator and '.' for thousands. Microsoft Excel gets regional options from Windows, so uses the same config for separators. So... when MS Excel reads "3.02" in a cell, it won't apply number format to that cell (although CSV format does not contain any format info, Excel will represent it by default).

Thanks!

WilbertOnGithub commented 9 years ago

@alesnav May I ask if you already found a solution for this problem? I'm facing the same problem and the only solution I currently see is writing a custom controller to generate the CSV file to my specifications.