Skip to main content
100%

Calcium vs. Potassium

✓ Published0🌍 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!

MIT Licensed

Similar vizzes