Skip to main content
100%

activity 6 2

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

This example loads the classic Iris flower dataset from a CSV file and displays the average sepal length for each of the three species as a formatted JSON summary. It demonstrates loading data asynchronously via `fetch`, parsing it with `csvParse`, and converting string values to numbers. The code uses `flatRollup` and `sum` from D3 v7 to aggregate the data, then renders the result as plain text in a `<pre>` element.

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