@daniel_peixoto,
Thanks for reporting the use-case. There was a minor issue with the object reference in the external code added for exporting the chart data as CSV. We have updated the same, please take a look at updated JSFiddle.
—
Vishwas R
Team CanvasJS