Skip to main content
100%

Neurohackweek 2017 D3 Tutorial

✓ Published0🌍 Public
Aakeshavan
Last edited Aug 31, 2017
Created on Aug 31, 2017

Five hardcoded numeric values render as a row of horizontal steel-blue bars using D3’s data join with `<div>` elements. On page load, each bar transitions its width from zero to its data value over one second. Hovering changes a bar’s background to black; clicking triggers a bounce-eased transition that enlarges the bar by 50% and updates the underlying array. The example demonstrates basic D3 v4 selection, `.transition()`, `.duration()`, and event handling with `mouseover`, `mouseout`, and `click`.

AI-generated description

Similar vizzes