{"version":"1.0","type":"rich","title":"Transforming Data","description":"This example demonstrates unidirectional data flow in D3 v7 by loading the Iris flower dataset and transforming it through a series of data-processing APIs. The visualization initially renders the raw CSV data as JSON text, then uses `csvParse` to convert the spreadsheet into typed objects, converting numeric columns with unary plus operators. It showcases `group`, `flatGroup`, `rollup`, `flatRollup` for aggregations by species, `sum` for computing average sepal lengths, and `bin` for histogram-like frequency distributions of sepal lengths. The state management pattern uses explicit `setState` calls to trigger re-renders, contrasting with typical D3 data joins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7786f4ecf5ce4ce78e200ca205c137e0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}