Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
RRahul Gupta
Last edited Mar 4, 2021
Created on Mar 4, 2021

This example demonstrates a scatter plot of automobile data, showing the relationship between vehicle weight, horsepower, and miles per gallon. The visualization uses the Vega-Lite API within a React framework, loading data from a CSV file via D3’s `csv` method. It renders a circle mark for each car, with color encoding weight, size encoding mpg, and tooltips revealing the car name. The code registers Vega-Lite with Vega and integrates the Vega Tooltip handler for interactive labels.

AI-generated description

A progarm that loads in some data using react and D3

MIT Licensed

Similar vizzes