Exploring survey data interactively - y-axis
A bar chart of survey data allows the user to compare averages across different subject preferences by selecting a variable from a dropdown menu. The x-axis groups respondents by their preferred subject, while the y-axis redraws to display the mean of the chosen attribute, such as height, stress, or number of siblings. Interaction with the menu updates the y-scale and bar heights. The visualization uses d3.json to fetch the data, d3.nest for aggregation, and d3.axisBottom and d3.axisLeft to redraw the axes on each selection.