Skip to main content
100%

Week 6 New Technique

✓ Published0🌍 Public
IIan Coolidge
Last edited Feb 22, 2024
Created on Feb 22, 2024
Forked from Circles with D3

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 description

This visualization uses a subset of the Apple Quality dataset.

The graph attempts to find a correlation between two rated properties of apples, in this case sweetness and ripeness, via a scatter plot.

The new technique used is a legend in the lower-left hand corner to distinguish between good and bad apples. The legend uses a custom data object that can be passed into the viz function.

MIT Licensed

Similar vizzes