Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

5be43b1750fc49ee8c329cf031722e50

Shapes with SVG and CSS

0 stars0🌍 Public
Kkimgarrard
Last edited Nov 11, 2019
Created on Nov 11, 2019

This example illustrates a car pricing report asynchronously loaded via a JavaScript Promise. The `getCars` module parses a static JSON array and resolves it after a two-second delay. `index.js` then filters this data by a maximum price using `generateReport`, formats each car with the `formatCar` template, and injects the resulting text into the DOM. The page also contains an SVG circle rendered solely with HTML and CSS, while the report text updates dynamically without any visualization library.

AI-generated description

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