Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars0🌍 Public
DDavid
Last edited Oct 26, 2020
Created on Sep 15, 2020
Forked from Making a bar chart

This example shows a horizontal bar chart of employee salaries from a CSV file, with each bar’s length proportional to salary and labeled by first name. It uses d3.csv to load data, d3.scaleLinear and d3.scaleBand for positioning, and appends SVG rectangles. The chart omits axes and text labels, instead focusing on the core scaling and data-binding workflow. Bars are styled steelblue via CSS, and the rendering is static SVG in a 960×500 viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed