Scatterplot
This example shows a simple scatterplot with two data points, plotting values on x and y axes labeled “Sepal Width (cm)” and “Sepal Length (cm),” and includes a legend with a colored square. The visualization uses D3 v4 with SVG rendering, employing `d3.scaleLinear` for axes, `d3.scaleOrdinal` with `d3.schemeCategory10` for colors, and appends circles as `.dot` elements. The data is temporary and hardcoded, while the axis code is commented out, so only the dots and legend render without visible tick marks.