Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API

Public visualization

Vega-Lite API

0 stars0🌍 Public
CChiedu Egbumokei Jr
Last edited Dec 22, 2021
Created on Dec 21, 2021

This example visualizes the relationship between car origin, horsepower, and model name using the Vega-Lite API, a JavaScript wrapper for Vega-Lite. It renders a scatterplot of points colored by origin, with tooltips displaying car names. The code loads automobile data from a CSV file via d3.csv and uses Vega-Lite’s declarative mark and encoding methods to specify the chart, which is then rendered to SVG with Vega. Appearance is customized through a configuration object, and the chart is sized to fit the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed