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)

b73a8a32ef234f6897eab5459d6fb003

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAhmed Mamdouh
Last edited Jun 21, 2021
Created on Jun 21, 2021

This example shows a scatterplot of automobile displacement versus horsepower, with a line mark summarizing the relationship. Tooltips display the vehicle name on hover. Built with the Vega-Lite API, it loads data from a CSV file using `d3.csv` and renders through Vega’s SVG backend. The visualization configures axis styles and disables the domain line for a cleaner look, while the chart size is set explicitly with `width`, `height`, and `autosize`. The code registers Vega-Lite with a Vega tooltip handler for interactive inspection.

AI-generated description

A visualization constructed using the vega-lite-api.