Fork of Hello VizHub
✓ Published0🌍 Public
This scatter plot visualizes car performance over four years, with speed on the x-axis and fuel efficiency on the y-axis. Each point represents a specific car-year observation, and five distinct cars are differentiated using custom SVG path shapes: circles, squares, triangles, diamonds, and crosses. The visualization uses D3 v6 to create linear scales (`d3.scaleLinear`) and axes (`d3.axisBottom`, `d3.axisLeft`), with the data defined as a hardcoded JavaScript array. The SVG rendering applies a fixed domain for speed and efficiency, and the code styles points with a stroke and fill via a CSS class.
AI-generated descriptionMIT Licensed