Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars1๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed