Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Hhasti khajeh
Last edited May 19, 2021
Created on May 19, 2021

This visualization displays the relationship between DenOutlets, DenOutdoorLights, and KitchenDenLights in kilowatts, using a scatter plot where each point’s color encodes the third variable. Built with the Vega-Lite API on top of D3 v5, it loads CSV data from a GitHub Gist and renders an interactive SVG chart with tooltips. The code uses `vl.markCircle`, `vl.x().fieldQ()`, `vl.y().fieldQ()`, and `vl.color().fieldQ()` to encode fields, while `vega-tooltip` provides hover details. The visualization auto-fits to the window size with a custom config for axis styling and readability.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

MIT Licensed

Similar vizzes