Skip to main content
Public

Share visualization

Loading preview…

Transforming Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Transforming Data

0
KKeerthiAnnem
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This example demonstrates transforming the classic Iris dataset by computing the average sepal length for each species. The visualization renders a JSON summary of the aggregated results as text. It loads data from a CSV file using `d3.csvParse` and leverages `d3.flatRollup` with `d3.sum` to calculate the averages. Data loading is managed through a state-based render loop, highlighting VizHub's reusable ES6 module pattern with `import` statements from 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.

Comments

Sign in to join the discussion.

MIT Licensed