Skip to main content
100%

vega

✓ Published0🌍 Public
MMatt Lane
Last edited Jul 28, 2022
Created on Jul 28, 2022
Forked from loadDataState

This example visualizes automobile data using a Vega-Lite scatter plot, with circles positioned by weight and horsepower, colored by origin, sized by miles per gallon, and showing car names on hover. The visualization is built with the vega-lite-api library, which compiles specifications to Vega, and is rendered as an SVG using the vega view. Data is loaded asynchronously from a CSV file with d3.csv, and the chart is dynamically sized to fit the window. The code includes custom styling for axes and tooltip formatting.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

loading data w/ d3 utils && react state

MIT Licensed

Similar vizzes