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

Point name in map series #100

Closed orestisioakeimidis closed 8 years ago

orestisioakeimidis commented 8 years ago

Hello @TorsteinHonsi ,

For the bubble map chart, instead of the point name in the csv, I am getting the value.

I am quite sure that this if (!series.xAxis || series.exportKey === 'name') { should be replaced by that if (!series.xAxis || series.options.exportKey === 'name') {.

Is that correct?

Thanks in advance!

TorsteinHonsi commented 8 years ago

Is that correct?

No, the exportKey is set to the series prototype so it should be available as series.exportKey.

Also, to me this seems to work correctly: http://jsfiddle.net/highcharts/kk9558hx/

orestisioakeimidis commented 8 years ago

And how can I make this work?

http://jsfiddle.net/eqf7eq6s/

Thanks!

TorsteinHonsi commented 8 years ago

Okay, I see what failed. It was the map series that brought in the categories. Drop-in fix: http://jsfiddle.net/eqf7eq6s/1/

orestisioakeimidis commented 8 years ago

Ah thank you @TorsteinHonsi!

Can you also have a look at this fiddle? It seems that there is something wrong with multiple series.

http://jsfiddle.net/Lxzyb2j4/

Thank you again!