Skip to main content
100%

Starting with Bar Chart

✓ Published0🌍 Public
MMithun Ghosh
Last edited Nov 27, 2020
Created on Nov 27, 2020

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 description

Starting with Bar Chart

MIT Licensed

Similar vizzes