Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published2🌍 Public
LLewis Ward
Last edited Jun 25, 2021
Created on Jun 24, 2021

This visualization plots automobile data from a CSV file, showing the relationship between horsepower, origin, and weight. Each point represents a vehicle, colored by weight and positioned by horsepower across different origin categories, with tooltips revealing car names. The example uses the Vega-Lite API, specifically `vl.markPoint`, `vl.x`, `vl.y`, `vl.color`, and `vl.tooltip`, to construct the specification. It loads data via d3’s `csv` function from a GitHub gist, then renders the chart as an SVG using Vega and Vega-Lite, with the final output generated through `import vega from 'vega'` and `import vegaLite from 'vega-lite'`.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes