Skip to main content
100%

Tuto 4

✓ Published0🌍 Public
NNathanGBIM
Last edited Jun 16, 2020
Created on Jun 16, 2020
Forked from Tuto 3

This bar chart displays car mileage (x-axis) for each car ID (y-axis), with steel blue bars indicating mileage values. The chart is rendered as an SVG using D3 v5, with data loaded from a local CSV file containing car attributes like year, mileage, and price. The code applies scales with `scaleLinear` for the continuous mileage axis and `scaleBand` for the categorical car IDs, then appends a group and uses `axisLeft` and `axisBottom` to generate labeled axes within a margin-defined plotting area.

AI-generated description

My first step with d3 2.

MIT Licensed

Similar vizzes