Making a Scatter Plot
✓ Published0🌍 Public
This example displays a scatter plot of Iris flower measurements, mapping sepal length on the x-axis and sepal width on the y-axis. The visualization loads data from a CSV file using D3’s `csv` function and renders circles as SVG marks positioned with `scaleLinear` scales. React components structure the axes and marks, while D3’s `format` helper and `extent` method compute tick labels and scale domains. The chart includes labeled axes and tooltips via SVG `<title>` elements, with data sourced from the standard Iris dataset.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed