Skip to main content
100%

Template do Vega-Lite API

✓ Published0🌍 Public
RRodrigo Zanco
Last edited May 11, 2021
Created on May 11, 2021

This example displays a scatter plot of automobile acceleration versus horsepower, with tooltips showing the car name. It uses the Vega-Lite API in JavaScript to define the visualization declaratively, while handling data loading and rendering through D3’s `csv` method and Vega’s runtime. The code retrieves the auto-mpg dataset from a GitHub gist and applies custom axis and label styling via a configuration object. The SVG output is rendered full-window with a tooltip handler from the vega-tooltip library.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes