Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

b4538406a1fd4c578ee151348c5f2e46

Fork of Hello VizHub

0 stars0🌍 Public
RRobertWell
Last edited Mar 9, 2021
Created on Mar 9, 2021
Forked from Hello VizHub

This example demonstrates a data-report generator that filters a small JSON array of car records by price and displays the matching entries as formatted text in the page. The visualization relies on D3 v5, accessed via UNPKG, using the `select` API to set the text content of a `#message` div. The code also showcases local ES6 module imports, with `generateReport.js` filtering cars and `formatCar.js` formatting each record with year, make, model, and price.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.