Template do Vega-Lite API
✓ Published0🌍 Public
This example displays a scatter plot of automobile acceleration versus horsepower, with tooltips showing the car name. It uses the Vega-Lite API in JavaScript to define the visualization declaratively, while handling data loading and rendering through D3’s `csv` method and Vega’s runtime. The code retrieves the auto-mpg dataset from a GitHub gist and applies custom axis and label styling via a configuration object. The SVG output is rendered full-window with a tooltip handler from the vega-tooltip library.
AI-generated descriptionA visualization constructed using the vega-lite-api.
MIT Licensed