Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

68373c4726914bf1ae5e9050870d1276

Fork of Vega-Lite API Template

0 stars0🌍 Public
TTakuya Kitazawa
Last edited Jan 12, 2021
Created on Jan 12, 2021

This example visualizes automotive data from a CSV file, plotting horsepower and weight for each car as circles, with color indicating origin and size encoding miles per gallon. It uses the Vega-Lite API to build the chart declaratively, with D3’s `csv` function for data loading. The visualization leverages vega-lite-api’s `markCircle` and `encode` methods, and it renders SVG output through Vega, vega-lite, and vega-tooltip for interactive tooltips.

AI-generated description

A visualization constructed using the vega-lite-api.