Fork of Vega-Lite API Template srubio
✓ Published0🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed