Skip to main content
100%

Viz - Legend - onMouserOver onMouseOut

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

This example demonstrates an interactive SVG legend with ten categorical items labeled A through J. Hovering over a legend item displays its corresponding letter in a text element above, while moving the mouse away clears the text. Built with D3 v4 and the viz.js library, it uses the `viz.legend()` API with `.onMouseOver()` and `.onMouseOut()` callbacks to update the display. The legend is rendered as a group of SVG elements inside a 960x500 canvas.

AI-generated description
gpl-3.0 Licensed

Similar vizzes