Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

24f26def0a9f45a3a5bb363fa31b212b

Fork of Vega-Lite API Template

0 stars0🌍 Public
AAkramjon1995
Last edited Jan 26, 2023
Created on Jan 26, 2023

This example visualizes the relationship between fuel efficiency and engine power for various car models, using a scatter plot where point color indicates country of origin and point size reflects vehicle weight. The visualization is built with Vega-Lite’s API, with the specification defined in `viz.js` and rendered via D3. Data comes from the UCI Auto MPG dataset, loaded asynchronously using `d3.csv`. The chart is configured with custom axis styling from `config.js`, and includes interactive tooltips via `vega-tooltip`.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.