🌍 Public
Viewing a saved revision (read-only)
51532bd46c2146bfaec60d18d1f2516e
Vega-Lite API Template
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 descriptionA progarm that loads in some data using react and D3