🌍 Public
Viewing a saved revision (read-only)
f69c413dfd6d4c90800e8748921b285f
Activity6_Task3
A scatter plot shows the relationship between EngineSize and FuelEfficiency for eight car models, revealing a generally negative correlation where larger engines consume more fuel. The visualization is rendered as an SVG using D3.js v7, with data loaded from a local CSV file. The script constructs circles positioned by mapping data values to x and y coordinates, and includes axis labels and tick marks styled through CSS. Dot borders are drawn with a dark stroke for clarity.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.