I have a JSON file with the data I want to display in histogram using d3. working on my laptop and using IntelliJ, I just write the following code in javascript:
d3.json("myData.json", function(error, data) { // processing ... }) and all is well. However, if I want to deploy my website in tomcat server, this won't work. I've never worked on server-side, so I am not sure what to do, I thought about reading the JSON file in a servlet using getResourceAsStream(myData.json) but I am not sure how to use it later in d3 to create the histogram. I am a bit lost, so I really appreciate any hints.
jeudi 23 mai 2019
How to read JSON file in servlet and then use it in d3.js
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire