Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 2

Public visualization

Viewing a saved revision (read-only)

3ce99b2eeeab46168ef4012ae404144d

Question 2

0 stars0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.