Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

experiment with functions

Public visualization

experiment with functions

0 stars1🌍 Public
Cchrisdreece
Last edited Jan 12, 2021
Created on Jan 12, 2021
Forked from Making a bar chart

This example demonstrates a D3.js experiment with functions using JavaScript arrays and data transformation methods. It features an in-code JSON dataset of fictional cars with properties like make, model, year, and price, and also includes a separate CSV file with country population figures. The visualization uses D3 v6's `scaleLinear`, `scaleBand`, `max`, and `csv` APIs to log and process data, though the rendering logic is largely commented out. The code explores various programming constructs—including while and for loops—to iterate through the car data and print price values to the console.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed