Transforming Data
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed