ICE-7 1 Q Sadvik
This scatter plot visualizes an electric vehicle dataset, showing the relationship between average price and electric range for different vehicle types. Each point represents a vehicle, with position determined by price on the y-axis and range on the x-axis. The visualization uses D3 v7 with an SVG renderer, employing linear scales for both axes and a color scale to distinguish between Sedans, SUVs, Hatches, and Crossovers. The code explicitly creates axes, adds labels, and includes a categorical legend with colored circles, using methods like `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.axisBottom`.