Skip to main content
100%

Transforming Data

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jun 17, 2023
Created on Jun 17, 2023
Forked from Hello VizHub

This example demonstrates data transformation by loading the classic Iris dataset from a CSV file, converting string values to numbers, and computing the average sepal length for each Iris species using the `flatRollup` and `sum` functions from D3 v7. The resulting summary is rendered as a JSON string inside a `pre` element. The visualization also showcases ES6 module imports and asynchronous state management through the `setState` callback pattern.

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