Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Calcium vs. Potassium

Public visualization

Calcium vs. Potassium

0 stars0🌍 Public
CCurran Kelleher
Last edited Dec 30, 2020
Created on Dec 30, 2020

This scatterplot displays the relationship between Calcium and Potassium content (as % Daily Value) for various foods. Each food item is labeled directly with its name and serving description using a text mark, rather than being represented by a point. The visualization is built with Vega-Lite and D3, reading nutrition data from a CSV file. The text marks are rendered with a size of 14 and opacity of 0.4, with axes scaled to exclude zero.

AI-generated description

This is a shallow fork of original work by Aliaksandr that uses text as the mark.

I made this change because I found myself just hovering over all the dots in the original, to see what they all are. I figured, better just put the text on the viz!

Comments

Sign in to join the discussion.

MIT Licensed