{"version":"1.0","type":"rich","title":"Exploring survey data interactively - y-axis","description":"An interactive bar chart explores survey data by letting users select a y-axis variable from a dropdown menu, redrawing bars and axes accordingly. The x-axis groups students by subject interest, while the y-axis displays metrics like average height, stress, or expenses, computed from the raw survey data. Built with D3 v5, it uses the general update pattern to dynamically update scales and SVG elements. The dropdown options are generated via a data join, and D3's `d3.nest()` and `d3.mean()` prepare the aggregated values.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4a61de4a4034423a98ae79d0135781f7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}