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 95 forks source link

CSV export for treemap does not contain serie names #98

Open quartelh opened 8 years ago

quartelh commented 8 years ago

Hi,

it seems that the CSV export does not work well on treemaps. The CSV only consists of Category and Series 1, but the Series name is left empty.

See jsfiddle for an example: http://jsfiddle.net/t99vzq42/

This is the result of the csv export: Category,"Series 1" 0 1 2 3,5 4,3 5,4 6,4 7,1 8,1 9,1 10,3 11,3 12,2

Expected:

Bananas, Rick, 10 Bananas, Anne, 4 ... Apples, Anne, 5 ...

TorsteinHonsi commented 8 years ago

You can display the point name in the export by adding the keys option: http://jsfiddle.net/highcharts/t99vzq42/2/.

But I agree that this should be expected out of the box. Probably we need to change the pointArrayMap property.