Home > three_d.js > Examples

set_point_position() three_d.js example

This page contains an example of using three_d.set_point_position() to move points in a scatter plot. The labels are random numbers. Move your mouse or tap on a point to have it move to a random location.

Mouse controls: Left-click and drag to rotate; alt (Mac)- or ctrl (Windows)-click-drag or middle-click-drag to pan; scroll or shift-click-drag to zoom. Touch screen controls: one finger to rotate; two-finger scroll to pan; pinch to zoom.

You can see how the plot is constructed in the HTML source. If not moving points during a mouse event, you would probably want to call three_d.update_render() to re-draw with the newly located points.

Posted 2016-12-22.


Home > three_d.js > Examples