I am using the highcharts js library and i want to add the feature of exporting as csv.
I have added the option in the file modules/exporting.js but i dont know what to do next.
Can anyone give me a hand?
I am using the highcharts js library and i want to add the feature of exporting as csv.
I have added the option in the file modules/exporting.js but i dont know what to do next.
Can anyone give me a hand?
Here is an example on how to modify the buttons. You can add a custom button with your csv export and then in the server side just create a string and export it.
You could make your Javascript call a PHP function (assuming you use it) that generates a CSV based on whatever parameters you include in the url (none here).
This method could be used for other server-side languages.
This worked for me. Just add this to the constructor. It's a modification of Elzo's post. I'm using highstock, but they should work similar.