🌍 Public
Viewing a saved revision (read-only)
c534db55b0984fb4ba1bb9ece79b7da7
Fork of Hello VizHub
This scatter plot visualizes car performance by plotting speed (km/h) against fuel efficiency (mpg) for five car models over four years. Each point represents a single year’s data, with distinct colors (red, blue, green, orange, purple) assigned per car brand, sourced from an embedded CSV table. Built with D3 v6, the SVG chart uses `d3.scaleLinear` for axes and `d3.axisBottom`/`d3.axisLeft` for ticks, while circles are appended via `.selectAll().data().enter()`. The code shows a static rendering with `svg` output, and no animation or interaction is implemented.
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.