Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars0🌍 Public
FFloorNummer
Last edited Sep 29, 2021
Created on Sep 29, 2021

This example demonstrates a scatter plot of automobile data, mapping engine displacement on the x-axis and horsepower on the y-axis, with each point representing a car model. The visualization is built using the Vega-Lite API, which programmatically defines the chart’s encoding and mark properties. Data is loaded as CSV from a remote URL via the `d3.csv` function, and the chart is rendered to an SVG canvas. The code also includes custom axis styling and a tooltip handler from the Vega Tooltip library to display car names on hover.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed