Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Mmisstong
Last edited Sep 17, 2022
Created on Sep 17, 2022

This example displays a scatter plot of automobile data, mapping engine displacement on the x-axis against horsepower on the y-axis, with each point representing a car model and its name shown as a tooltip on hover. The visualization uses the Vega-Lite API to define the chart specification programmatically, while D3’s `csv` function loads the dataset from a GitHub gist. The `vega` and `vega-lite` libraries handle rendering to SVG, and `vega-tooltip` provides interactive hover details. Custom axis styling and opacity settings are applied via the `config.js` file.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes