We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, is it not possible to use Async/Await with d3-fetch?
i tried doing this:
import * as d3Fetch from "d3-fetch"; async getData() { const india = await d3Fetch.json('/data/IND.json'); return india; },
it returned a Promise instead.
PS: currently, i have to save .geojson as .json file format. Feels counter-intuitive? Any plans to add support to read .geojson files?
The text was updated successfully, but these errors were encountered:
Async-await works great with d3-fetch and we use it in Observable regularly. Here is an example I found:
https://beta.observablehq.com/@jermspeaks/async-await
Sorry, something went wrong.
No branches or pull requests
Hi, is it not possible to use Async/Await with d3-fetch?
i tried doing this:
it returned a Promise instead.
PS: currently, i have to save .geojson as .json file format. Feels counter-intuitive? Any plans to add support to read .geojson files?
The text was updated successfully, but these errors were encountered: