Skip to main content
100%

JavaScript101

✓ Published0🌍 Public
JJoshuoYang
Last edited Sep 25, 2022
Created on Sep 25, 2022
Forked from D3 Starter

This example demonstrates a minimal D3 version 6 setup by rendering a hardcoded message extracted from a JSON array of car data. It shows how to import and parse local data through ES modules, specifically using `cars.js` and `carsJSON` with `JSON.parse`. The code uses `document.getElementById` to set the text content of a `<pre>` element in `index.html`, displaying only the make of the first car. The visualization relies on standard DOM manipulation rather than D3’s data-binding or scales.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes