Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
JJanet Li
Last edited Jun 4, 2021
Created on Jun 3, 2021

This example demonstrates a bar chart that visualizes the relationship between automobile model year and horsepower, colored by country of origin. Built with the Vega-Lite API, it uses `vl.markBar()` to encode data through the `vl.x()`, `vl.y()`, `vl.color()`, and `vl.tooltip()` channels. The visualization loads automotive data from a CSV file via `d3.csv`, and integrates with `vega-tooltip` for interactive hover details, with custom styling applied through a configuration object.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes