🌍 Public
Viewing a saved revision (read-only)
39ac10dc598b415dbdc2a0e7e6ce1a23
Fork of Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.