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

Highcharts.find is not a function #124

Closed VictorChen closed 7 years ago

VictorChen commented 7 years ago

calling .getCSV() is giving me this error:

Uncaught TypeError: Highcharts.find is not a function`

Highcharts version: 4.2.7

TorsteinHonsi commented 7 years ago

You need to use the latest Highcharts version.

VictorChen commented 7 years ago

Should update the dependencies:

https://github.com/highcharts/export-csv/blob/master/package.json#L27

TorsteinHonsi commented 7 years ago

Thanks, it's done. Also, it's easy to work around the issue:

// Polyfill for missing Highcharts.find
Highcharts.find = function (arr, callback) {
    return [].find.call(arr, callback);
};