Viewing a saved revision (read-only)
6cf3d82a6c574565bea6a35197a2742d
Fork of ICE_7 Yearwise Crop Production in Andhra Pradesh
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 descriptionA 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.