{"version":"1.0","type":"rich","title":"Transforming Data","description":"This example loads the Iris flower dataset from a local CSV file and computes the average sepal length for each species using D3’s `flatRollup` and `sum` functions. The resulting summary is displayed as a JSON string inside a `pre` element. The code demonstrates local ES6 module imports, fetching and parsing data with `csvParse`, and state management through a `setState` callback that triggers re-rendering. D3 v7 is loaded via UNPKG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f4e82378a5d2417eade677db24e987ab?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}