Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite Weight vs. Horsepower

Public visualization

Vega-Lite Weight vs. Horsepower

0 stars1🌍 Public
Iikerson
Last edited Aug 9, 2021
Created on Aug 9, 2021

This example visualizes the relationship between vehicle weight, horsepower, and fuel efficiency using a scatter plot. Each circle’s position encodes weight and horsepower, while its size represents miles per gallon, and its color encodes weight, with tooltips displaying vehicle names. Built with the Vega-Lite API, the code registers Vega and Vega-Lite libraries, loads data from a CSV via d3.csv, and renders the chart as an SVG using a custom configuration that adjusts axis styles and label fonts.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed