Skip to main content
100%

d3Edge_V5-dataLoading-v1.1

✓ Published0🌍 Public
JJimMaltby
Last edited Jun 18, 2022
Created on Jun 18, 2022

A circular progress meter displays the loading status of a remote JSON file from the GitHub API, using a black foreground arc over a gray background ring. As the data streams in, the arc's angle and percentage text update smoothly via `d3.transition()` and an interpolated `tween` function, driven by the progress event from `d3.json`. The code relies on the deprecated `d3.svg.arc()` and `d3.event.loaded` pattern, and upon completion, the entire meter scales down and disappears with a delayed `transition.attr`.

AI-generated description

Exploration of how to develop a data loader using dispatch in v5. https://bl.ocks.org/mbostock/3750941 https://stackoverflow.com/questions/55137893/d3-event-loaded-in-d3-version-4 https://bl.ocks.org/mbostock/3750941 using the data loader example from "developing the d3.js edge"

MIT Licensed

Similar vizzes