Skip to main content
100%

ACT(6) Task4

✓ Published0🌍 Public
BBhavyaMammai
Last edited Jun 14, 2023
Created on Jun 13, 2023
Forked from Hello VizHub

This example loads the classic Iris dataset from a CSV file and displays the average sepal length for each species as a formatted text summary. It uses `d3.csvParse` to parse the data, `d3.flatRollup` to group by species, and `d3.sum` to calculate the mean. The visualization renders the result in a `<pre>` element, updating via a state management pattern that fetches and processes the data asynchronously. It demonstrates data loading, transformation, and simple text output using D3 v7.

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