Selected Data Example
✓ Published0🌍 Public
This example shows a scatterplot of car data from the vega-datasets cars dataset, where users can select a single point to display that car’s details in a table below. The plot uses Vega-Lite and vega-embed to render the visualization, while a Vega View instance listens for the `mySelection` signal and resolves the selected datum with `vlSelectionResolve`. The table dynamically updates with the selected car’s make, model, year, horsepower, and miles per gallon.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed