Skip to main content
100%

question_2

✓ Published0🌍 Public
Eeedaraajay02@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This example visualizes the classic Iris flower dataset, plotting petal and sepal lengths for each species along a horizontal axis. It uses D3.js v7 with a band scale for the categorical species on the y-axis and a linear scale for length. Circles are rendered in SVG, with petal lengths in steel blue and sepal lengths in green. Hovering changes a circle's fill color. The code loads data via `d3.csv` and uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to construct the chart.

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.
MIT Licensed

Similar vizzes