🌍 Public
Viewing a saved revision (read-only)
e82243d4b1d54d63bff7cf93a5595da0
Fork of Rahul
This example shows a bar chart of average salaries by job title, with tooltips displaying each job title and its corresponding salary on hover. The chart is implemented as a React application using D3.js v6, rendering SVG bars that change from steel blue to orange when the user mouses over them. The visualization loads data from a CSV file containing job titles and salaries, then uses `d3.scaleBand` and `d3.scaleLinear` to map the data to bar positions and heights. It also includes rotated axis labels, a chart title, and axis labels for salary and job title.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.