Home > three_d.js > Examples

Appending three_d.js example

This is an example of appending data points to a scatterplot. Click on 'Append' below the plot to add some red points.

If you are using geom_type == "point" or geom_type == "none" and want to append data points continuously, then it is best to avoid appending data, and instead you should initialise a large dataset with many null values that then get updated, as is done in the Lorenz attractor example. (Those two geom_types use fixed-length arrays, and continually re-defining them takes time.)

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-12-22.

Home > three_d.js > Examples