Scatter Plot with Different Colors
✓ Published0🌍 Public
A scatter plot displays penguin bill length against bill depth, with each point colored by species using a D3 ordinal color scale. The visualization loads data from an external CSV file and renders circles in an SVG container. It uses D3 v6 scaleLinear for the axes, scaleOrdinal with schemeCategory10 for colors, and includes axis labels and a legend generated from the color scale's domain.
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.
MIT Licensed