🌍 Public
Viewing a saved revision (read-only)
738e9a9ed5254cda961741beff9de08a
Cars Report
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 descriptionA demonstration of how to start using D3 version 6.