Skip to main content
100%

Fork of Fork of Hello VizHub Q2 vk

✓ Published1🌍 Public
Vvikramkotlo9@gmail.com
Last edited Apr 7, 2024
Created on Apr 6, 2024

This example displays a pie chart from the Iris dataset, showing the distribution of petal lengths by species. Built with D3.js (version 6.7.0), it loads data from a GitHub Gist via the `d3.csv` function, transforms it, and renders an SVG. The visualization uses `d3.scaleBand` and `d3.scaleLinear` for axes, `d3.stack` and `d3.area` to create the chart, and `d3.axisBottom` and `d3.axisLeft` for tick marks. A title labeled "Petal Length Distribution" is added above the plot.

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