Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE_7 Yearwise Crop Production in Andhra Pradesh

Public visualization

Fork of ICE_7 Yearwise Crop Production in Andhra Pradesh

0 stars0🌍 Public
PPothuguntla Pranitha
Last edited Apr 26, 2024
Created on Apr 26, 2024

This example displays yearly crop production across districts in Andhra Pradesh, with each circle representing a year-district combination. The visualization encodes crop production on the y-axis, crop year on the x-axis, and district names as categorical colors, with crop names shown in tooltips. It uses the Vega-Lite API, registered with the Vega and Vega-Lite libraries, to build a scatter plot with an adjustable size. The data is loaded asynchronously from a CSV URL using d3.csv, and the visualization is rendered to SVG with a custom configuration that modifies axis tick colors and label styles. The tooltip functionality is enabled via the Vega Tooltip handler.

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.

Comments

Sign in to join the discussion.

MIT Licensed