🌍 Public
Viewing a saved revision (read-only)
66dbdaa2078745c9863dc55ea4cbd7b1
My first Bar Chart in D3!
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