Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
Vvictoriokhomas
Last edited Jul 14, 2021
Created on Jul 14, 2021
Forked from D3 Starter

This example demonstrates a basic D3.js starter template combining an animated arc shape with a simple text report. The visualization displays a red-background SVG canvas with a semicircular arc that transitions vertically using D3's `.transition()` method over two sequential 2-second animations. Concurrently, an asynchronous data-loading routine (`getCars()`) retrieves a hardcoded JSON array of car objects after a 2-second delay, then generates a plain-text report filtered by year using `generateReport()`, and displays the result in an HTML `<pre>` element. The code leverages D3 v7's `select`, `arc`, and animation APIs, with all car data defined locally in the source files.

AI-generated description
MIT Licensed

Similar vizzes