{"version":"1.0","type":"rich","title":"Fork of Exploring survey data interactively - y-axis","description":"This interactive bar chart explores survey data by allowing users to change the y-axis variable through a dropdown menu. The visualization initially displays average biggest expense across student subject preferences, with the option to switch between variables like sibling counts, height, health, and stress. A d3.nest() function aggregates the survey responses, while d3.scaleBand() and d3.scaleLinear() handle the axes. The chart updates dynamically using D3 v5's enter, update, and exit pattern, re-rendering both the bars and the y-axis with d3.axisLeft() when a new selection is made.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/afb9cc2061df471584f86a1e74e6aa35?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}