Skip to main content
100%

Autofocus

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jan 17, 2012

This example demonstrates how keyboard input can trigger a data visualization update on a web page. It uses a simple input field and listens for keydown events on the document window to display the numeric key code of the pressed key. The code relies on D3 version 3’s `d3.select` and `d3.event` APIs to manage element selection and event handling, and it updates the input element’s value property with the key code. The interaction is minimal, focusing on immediate visual feedback without additional data processing or rendering.

AI-generated description
gpl-3.0 Licensed

Similar vizzes