Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

a94d554fac684ec28f1c2d4ef79b0a3c

Fork of Vega-Lite API Template

0 stars2🌍 Public
AAliaksandr
Last edited Dec 29, 2020
Created on Dec 29, 2020

A scatterplot shows the relationship between potassium and calcium content in various foods, with circle size encoding protein amount. The visualization loads CSV data from a GitHub-hosted NutritionFacts dataset using d3.csv, then renders the chart through the Vega-Lite API's vl.markCircle and vl.encode methods. Opacity and size settings improve readability, while config.js customizes axis styling and tooltip formatting. The page integrates Vega, Vega-Lite, and vega-tooltip libraries to display the interactive SVG output.

AI-generated description

A visualization constructed using the vega-lite-api.