Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

10.0 Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

872e98c6054549e78f08186b18b6818b

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