Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
DDeepanshu
Last edited Sep 11, 2023
Created on Sep 11, 2023

This example displays a scatter plot of automobile displacement versus horsepower, with each circle representing a car model and tooltips revealing the vehicle name. The visualization is built using the Vega-Lite API, which constructs a declarative specification rendered through Vega, and loads data from a CSV file containing auto-mpg statistics. The code registers Vega-Lite and Vega Tooltip for interactive hover effects, while custom configuration options adjust axis labels, typography, and the dark color palette. D3 is used only for fetching the dataset via its csv method.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes