Skip to main content
100%

Transforming Data

✓ Published0🌍 Public
Rrushithareddyy
Last edited Jul 1, 2023
Created on Jun 26, 2023
Forked from Hello VizHub

This example demonstrates data transformation from a CSV file using D3.js. The visualization loads fruit pricing data and calculates the average sepal length for each species using `flatRollup` and `sum`. The transformed data is then rendered as a JSON string in a `<pre>` element. The code utilizes `csvParse` for data ingestion, `select` for DOM manipulation, and the `flatRollup` aggregation API to summarize the dataset.

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