Skip to main content
100%

My first Bar Chart in D3!

✓ Published1🌍 Public
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
MIT Licensed

Similar vizzes