Skip to main content
100%

Pointing

✓ Published0🌍 Public
Mmbostock
Last edited Nov 11, 2010
Created on Nov 11, 2010

This example shows a scatterplot of 100 random points, with dot color scaled from orange to brown based on y-value and a label revealing each dot’s precise y-value upon hover. Using Protovis, the visualization employs `pv.Behavior.point()` on a root panel to track mouse movement and trigger `point` and `unpoint` events on individual dots. A singleton nested panel tracks an active state per dot, toggling label visibility via `anchorTarget().active()`. Random jitter is applied to x-positions, and axes are drawn with `pv.Rule` and `pv.Label` from linear scales.

AI-generated description

Similar vizzes