Skip to main content
Public

Share visualization

Loading preview…

Simple Scatter Plot Fast Food Nutrition

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Simple Scatter Plot Fast Food Nutrition

0
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

Comments

Sign in to join the discussion.

MIT Licensed