Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

d0e7657fcd7a451987eccaf8da2196f1

Fork of Vega-Lite API Template

0 stars0🌍 Public
Zzykel
Last edited Oct 22, 2021
Created on Oct 22, 2021

This example demonstrates how to build interactive visualizations using the Vega-Lite API within a D3.js framework. It displays a line chart of automobile data from a CSV file, plotting horsepower over time with a viridis color scale and tooltips showing vehicle names. The visualization leverages the vega-lite-api library to construct the chart declaratively, while D3’s csv function loads the data. Custom configuration adjusts axis styling and font sizes, and the final SVG output is rendered across the full viewport with auto-sizing.

AI-generated description

A visualization constructed using the vega-lite-api.