Skip to main content
100%

Cars Report

✓ Published0🌍 Public
MMatthew Rubino
Last edited Jun 2, 2021
Created on Jun 2, 2021
Forked from D3 Starter

This example presents a simple report of two cars, displaying each car's year, make, model, and price in a large, preformatted text block on an HTML page. The report is generated by parsing a hardcoded JSON array of car objects and mapping over the data to format each entry. The implementation relies on JavaScript's native `JSON.parse` and a custom `formatCar` function, with the resulting output injected into the DOM via `textContent` on the `message-element`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes