initial line chart setup with d3 help

This commit is contained in:
Ginger Wong
2020-10-11 21:46:07 -07:00
parent 98ae9c43d3
commit 654f70dcf9
5 changed files with 257 additions and 410 deletions

View File

@@ -46,17 +46,12 @@ export async function fetchData(url) {
mode: 'cors',
credentials: 'include',
});
// waits until the request completes...
// console.log(response);
if (!response.ok) {
console.log(response)
const message = `An error has occured: ${response.status}`;
throw new Error(message);
}
const json = await response.json();
console.log(json)
return json;
} catch (error) {
console.log(error)