🌍 Public
Viewing a saved revision (read-only)
3ce99b2eeeab46168ef4012ae404144d
Question 2
This visualization uses the classic Iris dataset to display flower measurements as horizontal bar charts. The chart is implemented with D3 v7, using `d3.scaleBand` for species categories on the y-axis and `d3.scaleLinear` for measurement values on the x-axis. Each rect bar is colored by species via an ordinal color scale, and hovering over a bar reveals a tooltip showing the attribute, species, and value. The graphic also includes a legend and axis labels, with data loaded from a CSV file.
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.