I'm querying data from an Azure SQL database following the documentation on Microsoft docs using NodeJS.
Now that I have the data, I'm planning to visualize it using Plotly.js on a plain HTML. But, honestly I'm a noob on NodeJS stuff and I don't know how to transfer the data (that I stored in JS arrays) from the Node JS script and catch it on the HTML (being more precise, catch it on the Javascript code in<script></script> tags so I will be able to fill the Plotly.js visualization).
It would be something like this:
On Node.js script:
- Get the data from Azure (done)
- Pass the data to the HTML or somewhere the HTML could catch it
In the HTML markup:
<html>
<head>
</head>
<body>
<script>
// CATCH THE DATA RIGHT HERE
// PROCESS THE DATA USING PLOTLY.JS
</script>
</body>
</html>
I've been looking through Restify and ExpressJS but sincerely I don't get it that much, and I haven't found an example that catches the data on the "javascript of the html".
I'm not asking for code (I don't want to be misunderstood. Still, some example would be awesome), but I'd like to know where can I find something similar, a tool, a library or something that would help me to achieve this.
Thanks!