Skip to main content
Public

Share visualization

Loading preview…

Cars Report

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Cars Report

0
Jjesramyep1263
Last edited Apr 11, 2020
Created on Apr 11, 2020
Forked from Cars Report

Cars Report demonstrates asynchronous data loading and text-based reporting using D3.js. The example fetches a hardcoded JSON array of five used cars via a custom `getCars` promise, then processes the data with `generateReport`. This function filters cars by a maximum price of $2000, formats each entry using `formatCar` (which extracts year, make, model, and price), and joins results into a multi-line string. The final report is displayed in an HTML `<pre>` element after a simulated two-second loading delay, showing that no vehicles meet the price threshold.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

Comments

Sign in to join the discussion.

MIT Licensed