Skip to content

Fix double-replace #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Fix double-replace #105

wants to merge 1 commit into from

Conversation

danvk
Copy link

@danvk danvk commented Jun 6, 2018

Hello,

I got a JS error in d3.parcoords.js when I tried to load my CSV file into Design Explorer and traced it back to this. In one code path a key is "cleaned" by replacing just the first period with a space, while in another it happens twice. If one of your CSV columns contains two or more periods, this discrepancy will break the visualization.

Alternatively, you might want to change the "replace" on line 1109 to a "replace all" (.replace(/\./g, ' ')).

Thanks for the great tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant