Teste com vega lite api v1
✓ Published1🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed