Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

10.0 Vega-Lite API Template

Public visualization

10.0 Vega-Lite API Template

0 stars0๐ŸŒ Public
EEric Weiss
Last edited Apr 7, 2021
Created on Apr 7, 2021

This example uses the Vega-Lite API to render an interactive scatterplot of automobile data from a CSV file, visualizing acceleration, horsepower, weight, and origin. Circle marks are sized by weight, colored by origin, and include tooltips displaying car names via the fieldN encoding. The visualization leverages the vega, vega-lite, and vega-lite-api libraries, with a vega-tooltip handler for hover interactions. The plot fits the window dimensions and uses custom axis and label styling for improved readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed