Transforming Data
✓ Published0🌍 Public
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 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