*Excited about learning express!
Currently, I have two files - index.ejs
and script.js
.
The script I've written successfully fetches JSON data from an api.
const fetch = require("node-fetch");
const url = '...'
fetch (url)
.then(response => {
return response.json()
})
.then(data =>{
console.log(data)
})
.catch(err => {
})
I'm wondering how to utilize the fetched JSON data to create a chart using d3 on my index page.
Although I've done some research, I'm still feeling uncertain. Any guidance would be greatly appreciated! Thank you.