Skip to main content
100%

Teste com vega lite api v1

✓ Published1🌍 Public
Xxilingus
Last edited Oct 11, 2021
Created on Oct 11, 2021

This example renders a scatter plot of automotive data using the vega-lite-api, with each point representing a vehicle from a CSV dataset loaded via d3.csv. The chart visualizes horsepower against weight, colored by country of origin, and includes tooltips showing vehicle names. The visualization leverages vega-lite-api’s programmatic API to encode marks, while the vega and vega-lite libraries handle rendering, with a custom config for axis styling and vega-tooltip for interactivity. The plot fills the viewport using autosize and an SVG renderer.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes