🌍 Public
Viewing a saved revision (read-only)
bdfc51967d5e4b22b78b2be5e28e7e2c
Starting with Bar Chart
This example shows a minimal bar chart where each person’s weight from a CSV file is drawn as a rectangle, though all bars use a fixed width and height rather than encoding the data values. The visualization loads data.csv with D3’s `csv` method, converts the weight strings to numbers, and appends `rect` elements to an SVG. The code uses D3 v6’s `select`, `csv`, and data joins via `selectAll('rect').data().enter().append()`, with no scales or axes, leaving all rectangles identical.
AI-generated descriptionStarting with Bar Chart