Skip to main content
100%

Fork of Shapes with SVG and CSS

✓ Published0🌍 Public
Ppuru001
Last edited Apr 27, 2022
Created on Apr 27, 2022

This example demonstrates how SVG shapes (a circle and a rectangle) are rendered directly in HTML using CSS for styling, while D3.js is loaded via UNPKG and used with local ES6 modules. The code imports `getCars` from a local module, which returns a promise resolving to an array of car data after a two-second delay, and `generateReport`, which filters cars by price and formats them using `formatCar`. The report is then displayed in a message element, showcasing asynchronous data handling and module imports within a VizHub project.

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.
MIT Licensed

Similar vizzes