Skip to main content
100%

Activity 6 - Transforming Data

✓ Published0🌍 Public
HHarshithaAmbilpur
Last edited Jun 20, 2023
Created on Jun 20, 2023
Forked from Hello VizHub

This example demonstrates data transformation by loading the Iris flower dataset from a CSV file and computing the average sepal length for each species. The visualization displays the results as a formatted JSON summary, using a minimal text-based output. The code leverages D3 v7 functions including `csvParse` to parse the data, `flatRollup` and `aggregate` to group records and calculate sums, and `select` for DOM manipulation. This highlights how D3 can transform raw tabular data into structured summaries.

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