Skip to main content
100%

Scatterplot Chocolate Data

✓ Published0🌍 Public
LLeah Mitchell
Last edited Sep 27, 2021
Created on Sep 14, 2021

This scatterplot visualizes chocolate data, plotting the count of ingredients against cocoa percentage. Each brown, semi-transparent circle represents a chocolate bar, with its position determined by these two variables. The visualization is built using D3 version 6, leveraging functions like `csv` for data loading, `scaleLinear` for scaling axes, and `axisLeft` and `axisBottom` for generating the axes. The plot renders as an SVG, sized to fill the browser window, and uses data from a raw CSV file hosted on GitHub.

AI-generated description

Scatter plot counts_of_ingredients vs cocoa_percent for chocolate data.

Data from: https://gist.github.com/LeahMitchell/4afa22e37643ac62df2fe24b0267ebab

MIT Licensed

Similar vizzes