Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars0🌍 Public
JJohnKrige
Last edited Apr 22, 2021
Created on Apr 22, 2021

This example uses the Vega-Lite API to render a scatterplot of automotive data from a CSV file, plotting horsepower against the origin of each vehicle. The visualization encodes the `origin` field on the x-axis and the `horsepower` field on the y-axis, with tooltips displaying the car’s name. It loads data asynchronously via `d3.csv`, applies custom axis and label styling from a configuration object, and renders the chart in SVG using `vega-lite-api` with the Vega and Vega-Lite libraries.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed