{"version":"1.0","type":"rich","title":"Activity6_4_Transforming the Data","description":"This example demonstrates data transformation by loading the classic Iris flower dataset from a CSV file and computing the average sepal length for each species using D3’s `flatRollup` and `sum` functions. The results are displayed as a formatted JSON summary in a `<pre>` element. The visualization fetches the local CSV with `fetch`, parses it via `csvParse`, and converts numeric fields to numbers. The code also shows state management patterns, including a loading state and conditional rendering, relying on D3 v7’s selection and join methods.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8ae848fd7ef748b2b29bc133980cc5a5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}