Skip to main content
100%

Vega-Lite API Template

✓ Published5🌍 Public
CCurran Kelleher
Last edited Nov 15, 2019
Created on Nov 15, 2019

This example uses the Vega-Lite API to render a scatterplot of automotive data from a CSV file, plotting engine horsepower against the origin of each vehicle. The visualization employs semi-transparent black circles to reveal overlapping points, with tooltips displaying car names on hover. The code registers Vega, Vega-Lite, and Vega-Tooltip libraries, fetches data via d3.csv, and applies a custom configuration for axis styling and label fonts. The chart dynamically fits the browser window using an autosize type of “fit” with padding.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes