Skip to main content
100%

Vega light API demo

✓ Published0🌍 Public
Aarunkumarv1530@gmail.com
Last edited May 22, 2024
Created on May 22, 2024

This example demonstrates a scatter plot where each circle represents a data point, with its position mapped to the `jan` and `year_val` fields and color encoding the `districtid` category. The Vega Lite API, using `vl.markCircle` and `vl.encode`, builds the visualization declaratively from CSV data fetched via `d3.csv`. Rendered as an SVG through the Vega rendering engine, the plot includes tooltips for `state`, `districtid`, `year_val`, and `jan` values, and employs a custom configuration for styled axes and labels.

AI-generated description
MIT Licensed

Similar vizzes