Skip to main content
Public

Share visualization

Loading preview…

My first Bar Chart in D3!

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

My first Bar Chart in D3!

1
NNemastoja
Last edited Feb 4, 2021
Created on Jan 30, 2021

This bar chart displays salary levels for several finance-related roles, with horizontal bars ordered by job title. The visualization uses D3 v5’s `scaleLinear` for the salary axis and `scaleBand` for categorical roles, rendering SVG rectangles via `selectAll` and data joins. It reads a local CSV file with `d3.csv`, and axes are generated using `axisLeft` and `axisBottom`. The chart applies margins and scales to map salary values to bar widths, with a fixed 960×500 SVG canvas.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed