Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 Public
RRoshan Kumar
Last edited Oct 25, 2021
Created on Oct 25, 2021

This example uses the Vega-Lite API to create a scatterplot of automotive data, mapping engine horsepower against fuel efficiency (mpg) with points colored by country of origin. The visualization loads a CSV dataset via d3.csv, applies custom axis and label styling from the config, and renders circles with tooltips showing car names. It demonstrates the vega-lite-api wrapper for declarative chart construction, utilizing vl.markCircle, vl.x, vl.y, and vl.tooltip encodings, with vega-tooltip for interactive hover details.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes