rufuspollock-okfn / dataexplorer

View, visualize, clean and process data in the browser.
http://explorer.okfnlabs.org
148 stars 47 forks source link

Support for custom columns delimiters #143

Open ghost opened 11 years ago

ghost commented 11 years ago

I have some examples of CSV files that use | as delimiter. It would be nice to be able to set it as an option.

rufuspollock commented 11 years ago

@jackdbernier good point - we should probably allow you set any character for delimiter!

ghost commented 11 years ago

I might take a look later and propose a solution. Though I'm not used to work with backbone. This shouldn't be that hard.

rufuspollock commented 11 years ago

You'll just want to tweak the code here I think https://github.com/okfn/dataexplorer/blob/master/src/views/load.js#L259

simplest option would be just add "|" to the list, more complex option is to make this generic in some way!

rufuspollock commented 11 years ago

@jackdbernier any luck here?

ghost commented 11 years ago

We haven't got time to play a lot with the dataexplorer yet. Though, I tried to modify the code you pointed out with the dev console and it worked. So it will do the trick.