Skip to main content
100%

Untitled

✓ Published0🌍 Public
Ddaniel
Last edited Nov 30, 2023
Created on Nov 30, 2023
Forked from Hello VizHub

A violin plot displays the distribution of sepal length for three Iris species, with each species represented by a mirrored density curve. The chart is rendered as an SVG using D3 v4, loading data from a CSV file. The code uses `d3.histogram` to bin values, `d3.nest` for grouping by species, and `d3.area` with `d3.curveCatmullRom` to draw the smoothed violin shapes. Axes are created with `d3.axisLeft` and `d3.axisBottom`, and a linear scale maps bin counts to widths.

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