Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
ZZakaria Salogo
Last edited Feb 1, 2022
Created on Feb 1, 2022

This example shows a scatterplot of automotive data, mapping engine displacement to horsepower, with each point colored and labeled by car name. The visualization is built using the Vega-Lite API, with code that registers the vega, vega-lite, and vega-lite-api libraries, and uses vega-tooltip for interactive hover details. The data is loaded via d3.csv from a remote GitHub gist, and the chart is configured with custom axis styles and an opacity effect to reduce overplotting. The rendering targets an SVG output, sized to fill the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes