Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API And Hebrew Template

Public visualization

Viewing a saved revision (read-only)

3f9459b6567a45d9aa1b64c11f3e9ae3

Vega-Lite API And Hebrew Template

0 stars0🌍 Public
OOmri Cohen
Last edited Dec 19, 2021
Created on Dec 19, 2021

This visualization uses the Vega-Lite API to render a scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository, with miles per gallon reversed on the x-axis and horsepower on the y-axis. Circles are colored by country of origin and sized by vehicle weight, with tooltips showing model names. The code constructs the chart declaratively through `vega-lite-api` methods like `.markCircle()`, `.encode()`, and `.fieldQ()`, then renders it to SVG via the `vega` and `vega-lite` libraries, incorporating `vega-tooltip` for interactive hover details. Data is fetched as CSV using `d3.csv` from a GitHub Gist.

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.