Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming Data

Public visualization

Viewing a saved revision (read-only)

709098c1545442f88f5ddce6315814c2

Transforming Data

0 stars0🌍 Public
Vvineelaramulapalli32
Last edited Jul 1, 2023
Created on Jul 1, 2023

The visualization loads smartphone data from a CSV file and groups it by mobile model name, calculating the average price per model. It demonstrates data transformation with D3.js functions like `csvParse`, `flatRollup`, and `sum`, then outputs the aggregated summary as formatted JSON text within the container. The example highlights modular ES6 imports and asynchronous data fetching via `fetch`, rendering results in a simple text-based display using D3's `select` and `join` operations.

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.