🌍 Public
Viewing a saved revision (read-only)
48b11876cdf24b3b9612840eff6fc6b6
Activity-6-Q4
This bubble chart visualizes layoffs across companies, plotting the number of employees laid off on the x-axis against the percentage of the workforce affected on the y-axis. Bubble size encodes the absolute layoff count, while color distinguishes companies, with a legend identifying each. The chart uses d3.csv to load data, d3.scaleLinear for axes, and d3.scaleSqrt for bubble sizing. Interactive tooltips display company details on hover. SVG circles render the data, with d3.axisBottom and d3.axisLeft providing labeled axes.
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.