🌍 Public
Viewing a saved revision (read-only)
59988771a5fc48798cddf1900ffe9a2b
Week 6 New Technique
This scatter plot explores the relationship between sweetness and ripeness scores in a subset of the Apple Quality dataset, coloring each point green or red based on whether the apple is rated good or bad. The visualization uses d3.scaleLinear for both axes and d3.selectAll to render the circles, with a custom legend object passed into the viz function to display colored squares and labels for each quality category in the lower-left corner. The example demonstrates a reusable viz function that accepts configurable options for margins, axis labels, and legend data.
AI-generated descriptionCreating circles with D3.
Challenge
- Fork this example
- Modify it
- Maybe make it Halloween themed
- Maybe make it Christmas themed
- Be creative
Svelte
Here's a video on how to get started with Svelte as well!