Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading external data in processingjs

We want to create a web-based interactive visualization tool to make sense of data that we work with (for those interested: it's about next-generation DNA sequencing data). One of the issues we bump into at the moment is how to get the data to the tool. Apparently this javascript library cannot load external data, and as far as I understand the data would actually have to be embedded in the html itself. This is however out of the question as we're dealing with patient data here...

Does anyone have any pointers as to how we can access external data (basically .csv files) from processing.js?

Thanks! jan.

like image 379
jandot Avatar asked Nov 05 '22 03:11

jandot


1 Answers

There's no reason you couldn't load it via another library, such as jQuery, and then integrate it into your app. Here's an example of this. Basically, you would load the data, and then access it via PJS once it is available.

PJS is parsed to javascript, so the opportunities for integrating with any regular JS code are very good.

like image 99
muffinista Avatar answered Nov 29 '22 12:11

muffinista