Skip to main content
100%

Fork of Vega-Lite API Template srubio

✓ Published0🌍 Public
FFloweringDeathStar
Last edited Jul 12, 2021
Created on Jul 12, 2021

This example visualizes automobile performance data from a CSV file, plotting engine weight against horsepower while using circle size to encode fuel efficiency (mpg) and color to encode weight. The visualization is built programmatically using the Vega-Lite API, which constructs a declarative specification in JavaScript. The code registers Vega, Vega-Lite, and the Vega-Lite API, and renders the chart as an SVG via D3. It includes custom configuration for axis styling and tooltips, and the data is fetched asynchronously using the D3 CSV parser.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes