Activity6_Task2_Answer
✓ Published0🌍 Public
This visualization shows the distribution of employee performance ratings across five departments, with each department’s proportional breakdown into categories from Poor to Excellent. The chart uses stacked horizontal bars, where each segment’s length corresponds to the percentage of ratings in that category, and a legend identifies the color-coded categories. Built with D3 v7, the code employs `d3.csv` to load the dataset, `d3.stack().keys()` to compute the stacked series, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the y-axis, rendering as SVG with interactive tooltips on mouseover.
AI-generated descriptionMIT Licensed