You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2018. It is now read-only.
Go to http://jsfiddle.net/cqjvD/1069/ (or any export-csv enabled chart with a series that has the "#" character in the name)
Click "Download CSV" from the drop-down menu
Examine the CSV - the data is blank
Source:
The source of this issue seems to be in Highcharts.Chart.prototype.downloadCSV, when passing 'data:text/csv,' + csv.replace(/\n/g, '%0A'), as the href param.
Proposed solution:
Add .replace(/#/g, '%23') to encode the "#" character. Encoding the string could also be passed off to a new function that could encode all the special characters at once, not just newlines and "#".
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To reproduce:
Source:
The source of this issue seems to be in
Highcharts.Chart.prototype.downloadCSV
, when passing'data:text/csv,' + csv.replace(/\n/g, '%0A'),
as thehref
param.Proposed solution:
Add
.replace(/#/g, '%23')
to encode the "#" character. Encoding the string could also be passed off to a new function that could encode all the special characters at once, not just newlines and "#".The text was updated successfully, but these errors were encountered: