Skip to main content
100%

experiment with functions

✓ Published1🌍 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
MIT Licensed

Similar vizzes