Task9&10 Q-2 Divya Anusha chandrupatla
✓ Published0🌍 Public
This bar chart displays the average salary in USD for various job titles, highlighting salary disparities across roles. It uses D3 v7 to load salary data via `d3.csv`, aggregates it with `d3.rollups` to compute mean salaries, and renders the results as SVG rectangles. The chart applies `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis. Axis labels are generated with `d3.axisBottom` and `d3.axisLeft`, with rotated tick labels for readability, and bars are filled with a steel-blue color.
AI-generated descriptionMIT Licensed