Learning CSV
✓ Published0🌍 Public
This example demonstrates how to load and visualize CSV data as horizontal bars using D3 v5. The chart maps each room’s area to a bar width along the x-axis, with room names positioned on the y-axis via a band scale. The code uses `d3.csv` to fetch `data.csv`, parsing the `area` field as a number, then draws SVG rectangles scaled by `d3.scaleLinear` and `d3.scaleBand`. Data includes room names, numbers, areas, and departments from a retail-style layout.
AI-generated descriptionworking with d3
MIT Licensed