Skip to main content
100%

Fork of

✓ Published0🌍 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.

MIT Licensed

Similar vizzes