Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Xxmartinbr
Last edited Dec 6, 2021
Created on Dec 5, 2021
Forked from D3 Starter

This example displays a single data value from a small JSON array of car records. It shows the year of the first car in the dataset, which is parsed from a JSON string using `JSON.parse`. The result is rendered as text inside an HTML `<pre>` element with a large font size. The implementation relies on vanilla JavaScript and the Document Object Model’s `getElementById` method rather than any external visualization library. The data structure, containing year, make, model, and price fields, is defined inline but only the year of the initial entry is extracted and displayed.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes