Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Bar Chart

0 stars0🌍 Public
KKrishu
Last edited Aug 5, 2020
Created on Aug 5, 2020
Forked from Bar Chart

This bar chart displays salary range data, showing the count of occurrences for each salary bracket. The visualization uses an SVG rendering approach with D3 v5, implementing a horizontal bar layout where salary ranges appear on the y-axis using `scaleBand` and counts are mapped to bar widths via `scaleLinear`. The data loads from a CSV file, and the code multiplies population values by 100 before rendering. Each salary range receives a rectangle element positioned with the band scale, with bar heights determined by `yScale.bandwidth()`. The chart includes a "Not Mentioned" category, representing missing salary data.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed