Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes