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

Scatter Plot CSV export questions (zoom, extra data) #137

Closed nadim closed 6 years ago

nadim commented 6 years ago

Please refer to this fiddle: http://jsfiddle.net/1bLnjyuh/

I have two questions:

  1. When zoomed, is it possible to only obtain CSV data for points in the current zoom area?
  2. Is it possible to have extra data exported to the CSV? (In the above example the parameter named 'extra' with a value of z).

If no to either of the above, do you think there is a way to implement? I am going for both and am willing to patch + create a PR.

+Nadim

TorsteinHonsi commented 6 years ago
  1. Currently this is not implemented, but you can create a wrap for the getDataRows function where you filter out points outside the zoomed bounds. This should get you started: http://jsfiddle.net/highcharts/1bLnjyuh/3/

  2. This is achieved by setting the keys option: http://jsfiddle.net/highcharts/1bLnjyuh/2/