{"version":"1.0","type":"rich","title":"Transforming Data","description":"This example demonstrates how data can be loaded, parsed, and aggregated in the browser using D3 v7 and ES6 modules. It loads the classic Iris dataset from a CSV file, converts the numeric fields, and then uses `d3.flatRollup` with `d3.sum` to compute the average sepal length for each species. The result is displayed as formatted JSON text within a `<pre>` element. The code also illustrates a pattern for handling asynchronous data loading with a state machine that manages `undefined`, `'LOADING'`, and loaded data states.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4daac630990342378e3da840326384ee?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}