Scatter Plot with Menus
✓ Published0🌍 Public
This example displays a scatter plot of car weight against horsepower, with each vehicle represented by a semi-transparent red circle. The visualization uses D3 version 5 to load the auto-mpg dataset from a CSV file, map the data to linear scales, and render the axes and points in an SVG canvas. The code defines value accessors for the x and y variables, applies axis guides with tick lines, and includes axis labels and a title, all styled via an external stylesheet.
AI-generated descriptionMIT Licensed