Skip to main content
100%

Vega-Lite API Template 2

✓ Published0🌍 Public
KKirsten Lund
Last edited Feb 12, 2021
Created on Feb 12, 2021

This example visualizes one person’s film-watching records, plotting each movie as a circle positioned by its watch date on the x-axis and its grade on the y-axis, with color encoding the grade value. The circles are semi-transparent and tooltips reveal the film title. The visualization is built using the Vega-Lite API, which is registered with Vega and Vega-Lite, and data is loaded asynchronously from a CSV file via d3.csv. The code customizes axis and label styling through a config object, and the final SVG view is rendered full-screen, fitted to the window dimensions.

AI-generated description

A visualization of data from one person's film-watching records. Constructed using the vega-lite-api.

<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/RKJPMfKsAsQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->
MIT Licensed

Similar vizzes