🌍 Public
Viewing a saved revision (read-only)
f8a35f51dae4432d9b5024221096b422
Tuto 4
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 descriptionMy first step with d3 2.