{"version":"1.0","type":"rich","title":"Transforming Data","description":"This example demonstrates how D3 can transform raw CSV data into a meaningful summary using the `d3.flatRollup` and `d3.sum` APIs to aggregate the iris dataset by species and calculate the average sepal length. The visualization renders the resulting summary as formatted JSON text inside a `<pre>` element, showcasing D3's data loading, parsing, and transformation workflows. It uses `d3.csvParse` to load and type-convert the dataset, with state management handled through a custom `setState` function. The example highlights dynamic data fetching, transformation, and reactive rendering in a single-page D3 application.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/404d9557c1c5481d9d08a6e384ebd68a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}