Loading external data in processingjs

We want to create an interactive visualization tool based on the Internet to understand what data we are working with (for those who are interested: next-generation DNA sequence data). One of the problems we are facing right now is how to get data in the tool. Apparently, this javascript library cannot load external data, and as I understand it, the data really needs to be embedded in the html itself. This, however, is out of the question, since we are dealing with patient data here ...

Does anyone have any instructions on how we can access external data (mainly .csv files) from processing.js?

Thank! January

+5
source share
2 answers

There is no reason why you could not download it through another library such as jQuery and then integrate it into your application. Here is an example of this . Basically, you upload the data and then access it through PJS when it is available.

PJS is parsed in javascript, so the ability to integrate with any regular JS code is very good.

+2
source

Processing.js can load external data, for example, using the loadStrings function .

To make data available for your script, create a directory Datain your processing project, put your data files there, and then load them using loadStrings or loadXML.


, , process.org(java) processing.js( JavaScript). ; , .js .

0

All Articles