Skip to main content
100%

D3 Autoscaling Axis

✓ Published0🌍 Public
WWilliamQLiu
Last edited Nov 17, 2014
Created on Nov 17, 2014

Clicking anywhere on the SVG canvas appends a new data point and dynamically rescales the linear x and y scales, updating the axes and circles with elastic transitions. D3 v3’s `d3.svg.axis` renders the top and left axes, while `d3.mouse` converts pixel coordinates to data values via `scale.invert`. Initial circles animate outward from the origin with staggered delays, and mouseover events trigger custom handlers.

AI-generated description

Similar vizzes