Skip to main content
100%

TC of Vega-Lite API Template

✓ Published0🌍 Public
Wwaur1024
Last edited Mar 11, 2022
Created on Mar 11, 2022

This example visualizes the relationship between fuel efficiency (mpg), horsepower, weight, and country of origin across automotive models. It renders a scatter plot using Vega-Lite API, where points are scaled by weight and colored by origin, with a tooltip displaying vehicle names. The code loads data from a CSV via D3’s `csv` function, and uses Vega-Lite API’s `vl.markCircle` and encoding methods for x, y, color, and size. Custom configuration adjusts axis labels and fonts for readability against a dark theme.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes