{"version":"1.0","type":"rich","title":"Exploring survey data interactively - both axes","description":"This interactive bar chart lets users explore survey data by selecting a variable from a dropdown menu. Changing the selection updates both the y-axis and the heights of the bars, which display averages for variables like stress, health, and family size grouped by a fixed x-axis. The visualization uses D3 v5’s general update pattern with `d3.nest()` and `d3.rollup` to aggregate the dataset, which is loaded as JSON. Code defines scales, axes, and bar rendering with SVG, while the dropdown options are generated through a data join.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cf6555e27219491aa5a90f6b96655c0c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}