Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE_7 Cars horsepower and miles per gallon(mpg)

Public visualization

Viewing a saved revision (read-only)

8493cecc241549acb8c4d2031f5b83e6

Fork of ICE_7 Cars horsepower and miles per gallon(mpg)

0 stars1🌍 Public
SShishiraRudrabhatla
Last edited Jul 3, 2022
Created on Jul 3, 2022

This visualization displays the relationship between crop year and production, with district names available through tooltips. The scatter plot uses circle marks with encoded x and y positional fields from the data. Built with vega-lite-api, the code registers vega and vega-lite, applies a custom configuration for axis styling and label colors, and fetches data from a CSV using d3.csv. The visualization renders to SVG, with autosizing based on window dimensions and tooltip functionality provided through 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.