🌍 Public
Viewing a saved revision (read-only)
251f94620fb747668375f29b418a8eff
Actvity6_Task3_Question
This example displays a scatter plot of the Palmer Penguins dataset, mapping bill length on the x-axis and bill depth on the y-axis. Each point is colored by species using a categorical color scale, and a legend identifies the three penguin species. The visualization uses D3.js v7 to load the CSV data, scale axes with `d3.scaleLinear`, render the SVG circles, and construct the legend with `d3.select` and `d3.append`. Axes and labels are formatted with `d3.axisBottom` and `d3.axisLeft`, while `d3.schemeCategory10` assigns point colors.
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.