Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selected Data Example

Public visualization

Viewing a saved revision (read-only)

876b572cfdd242e59b73c05a5f2f99ee

Selected Data Example

0 stars0🌍 Public
Hhiteshk-itis
Last edited Apr 29, 2023
Created on Apr 29, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.