Skip to main content
100%

Viz - Legend - default

✓ Published0🌍 Public
NNPashaP
Last edited Jan 13, 2018
Created on Jan 13, 2018

This example demonstrates automatic legend generation for categorical data. A default legend is created with ten labeled items, "A" through "J", using the `viz.legend()` API from the Viz.js library and rendered as SVG inside a D3 v4 selection. The legend is appended to a `<g>` element through D3's `.call()` method, relying on the Viz library’s built-in styling and layout. The code does not show any custom interaction or modification beyond the default appearance.

AI-generated description
gpl-3.0 Licensed

Similar vizzes