tt-acm / DesignExplorer

Design Explorer is an open source web interface for exploring multi-dimensional design spaces
http://tt-acm.github.io/DesignExplorer/
MIT License
100 stars 60 forks source link

Fix double-replace #105

Open danvk opened 6 years ago

danvk commented 6 years ago

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!