This would be problematic for big data sets, for example, most of the data might not yet been loaded. I would suggest that such an export file is generated on the server and the chart toolbar can be extended to include custom items that launch this download.