Skip to main content
100%

Simple Scatter Plot Fast Food Nutrition

✓ Published0🌍 Public
Ppbruss@bu.edu
Last edited Sep 17, 2024
Created on Sep 17, 2024

This scatter plot visualizes the relationship between calories and protein content in fast food items, with each point representing a menu item from the fast-food nutrition dataset. The chart uses a light gray background for the plot area and semi-transparent circles to show overlapping data points. The code relies on d3's scaleLinear, extent, and axis functions to compute scales and render axes, while the @curran/axis-labels library provides labeled axis text. Circle radius and opacity are configured through parameters passed to the viz function.

AI-generated description

A simple scatter plot with D3 showing the Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data
MIT Licensed

Similar vizzes