Fork of Q2 Area chart
✓ Published0🌍 Public
This example displays a responsive scatter plot of employee salaries using an SVG-based area chart. It loads salary data from a CSV file and maps employee IDs along the x-axis using d3.scaleBand, with salary values on a linear y-scale via d3.scaleLinear. The chart utilizes d3.area to render a filled steelblue region beneath the salary points, and interactive circles with pointer-events enable tooltips that display employee names on mouseover. Axis labels are rotated for readability, and the visualization updates dynamically with d3 transitions.
AI-generated descriptionA responsive scatter plot.
MIT Licensed