Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML

Public visualization

Viewing a saved revision (read-only)

c9358fa67bfa43268e98a622162fcdb4

HTML

0 stars0🌍 Public
KKoundinya
Last edited Dec 28, 2021
Created on Dec 28, 2021

This example presents a scatter plot showing the relationship between automobile origin, model year, and vehicle name from the auto-mpg dataset. The visualization uses data fetched from a CSV file via `d3.csv()`, with points encoded by origin as both color and x-axis position, while the y-axis represents model year. The code leverages the vega-lite-api library to construct the specification, registering Vega and Vega-Lite, and includes tooltip functionality through the vega-tooltip `Handler`. The plot is rendered as an SVG with custom styling for readability.

AI-generated description

A visualization constructed using the vega-lite-api.