interactive color legend iris scatter plot
This interactive scatter plot displays the classic Iris dataset, mapping sepal and petal measurements along user-selectable x and y axes. A color legend categorizes the three iris species, and hovering over a species name dims the other points to highlight the selected group. Built with React and D3 v5, the visualization uses dropdown menus to swap axes and D3 scales (scaleOrdinal, scaleLinear) to position circles and assign colors. SVG rendering handles the marks and axes, while the legend’s mouse events filter and emphasize data by species.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.