Currently in the process of updating my website's form from plain HTML to JQuery. Here is the flow:
- User inputs 5 integers into the form
- We make a REST call to a web service
The server runs calculations, generates a JSON object
Now that we have the JSON result object, how do we deliver it to the client? Do we need to persist it with a specific URL on our web server? That could lead to hundreds of JSON files cluttering up the server directory.
D3.js on the client side waits for data via AJAX
var data; // global d3.json("path/to/file.json", function(error, json) { if (error) return console.warn(error); data = json; visualizeit(); });
Once data is available, render it for the client and remove the calculator from the screen
Struggling with the concept of needing a unique URL for each JSON object when making AJAX requests. How can I get d3.js to render my JSON object without having to store multiple files on the server?