Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Starting with Bar Chart

Public visualization

Viewing a saved revision (read-only)

bdfc51967d5e4b22b78b2be5e28e7e2c

Starting with Bar Chart

0 stars0🌍 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