Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
HHemanth Pokala
Last edited Nov 9, 2022
Created on Nov 9, 2022
Forked from Hello VizHub

This example displays a car report by rendering the price of the first car from a static JSON dataset directly into an HTML page. The dataset is defined in a local ES6 module, `cars.js`, which is imported into `index.js` using JavaScript’s `import` syntax. The code retrieves the element with the ID `message-element` and sets its text content to the car’s price value, demonstrating basic DOM manipulation alongside modular code organization and JSON parsing with `JSON.parse`.

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.

Comments

Sign in to join the discussion.

MIT Licensed