Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of

Public visualization

Viewing a saved revision (read-only)

f1ccb146d1884076954c8602b723af9c

Fork of

0 stars0🌍 Public
NNaveed945
Last edited Jul 3, 2022
Created on Jul 2, 2022

This visualization displays a scatter plot of grocery data from a GitHub-hosted CSV file, plotting Profit against Cost_Price, with color encoding by origin and point size representing mpg. Points are rendered as semi-transparent circles with tooltips showing Cost_Price values. The code uses the vega-lite-api library to construct the chart, registering vega and vega-lite, and leverages d3.csv for data loading. A dark-themed config customizes axis labels and title styling, while the chart auto-fits to the window dimensions.

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.