ExploreVLAPI
✓ Published0🌍 Public
This example demonstrates how to build interactive visualizations using the Vega-Lite API within a React application. It loads automobile data from a remote JSON dataset and renders a scatterplot showing the relationship between miles per gallon and engine displacement, with color encoding for cylinders and faceting by origin. The visualization leverages the vega-lite-api library to construct the chart declaratively, while vega-tooltip enables hover interactions. Data is fetched asynchronously using a custom getData function, and the resulting chart is rendered as an SVG inside a React component.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed