Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars0🌍 Public
CChaz
Last edited Jan 18, 2022
Created on Jan 18, 2022

This visualization displays temperature data as a shaded area chart, with temperature on the y-axis and timestamp on the x-axis. The example demonstrates the Vega-Lite API, where the visualization specification is built programmatically using `vl.markArea()`, `vl.x().fieldT()`, and `vl.y().fieldQ()` methods, rather than a static JSON spec. It registers Vega and Vega-Lite libraries, uses a custom dark-themed configuration for axes and labels, and loads CSV data from a remote URL via `d3.csv`.

AI-generated description

A visualization constructed using the vega-lite-api.

Comments

Sign in to join the discussion.

MIT Licensed