🌍 Public
Viewing a saved revision (read-only)
72e95b3f1e0d4357994197d329cc2c9e
Scatter Plot with Menus
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 description