Home > three_d.js > Examples

Minimal three_d.js example

This is the simplest call to three_d.make_scatter(params), when the argument params contains only the id of the <div> element to plot in, and the data. The objects in the data array contain only x, y, and z fields.

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.

Posted 2016-10-02.


Home > three_d.js > Examples