SDV_Project_Visualization_2
✓ Published1🌍 Public
A dual-axis line chart compares 2024 data science salaries and layoffs across five countries, using a shared x-axis for country names while plotting salary (left axis, in USD) and layoff counts (right axis) as separate polylines. The visualization pairs two CSV datasets loaded via `Promise.all` and `d3.csv`, filters them by year, and maps common countries before rendering SVG axes with `d3.axisBottom`, `d3.axisLeft`, and `d3.axisRight`. Lines are drawn using `d3.line`, with scales including `d3.scaleBand` and two `d3.scaleLinear` domains for the differing metrics.
AI-generated descriptionMIT Licensed