Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart with dropdown

Public visualization

bar chart with dropdown

0 stars0🌍 Public
Ccblon
Last edited Oct 7, 2022
Created on Oct 7, 2022
Forked from Cars Report

This example demonstrates a bar chart with an interactive dropdown menu, though the dropdown itself is not implemented in the shown code. Instead, it focuses on JavaScript modules handling asynchronous data loading. The `getCars.js` module simulates a two-second delay with a Promise and returns an array of car objects parsed from embedded JSON. The `generateReport.js` module filters cars by price and formats them with `formatCar.js`. The `index.js` file displays a loading message, then renders the filtered list using `document.getElementById` and text content updates.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed