Assignment 2 Question 2
✓ Published0🌍 Public
This example visualizes employee salaries as an area chart, with each employee’s salary plotted against their ID and the area filled in translucent steelblue. It also adds interactive tooltips on circular data points that display the employee’s name on hover. The visualization loads data from a remote CSV via `d3.csv`, uses `d3.scaleBand` and `d3.scaleLinear` for axes, and renders SVG shapes with `d3.area` and circle elements. The tooltip appears through D3 transitions, while axis labels are rotated using SVG transforms.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed