Open tlienart opened 4 years ago
var i, x, y, x_arr = [], y_arr = []; for (i = 0; i < 1000; i++) { x = Math.random() * 8 - 4; y = Math.random() * 8 - 4; x_arr.push(x, x, NaN); y_arr.push(y, y, NaN); } var scatterplot = board.create('curve', [x_arr, y_arr], {strokeWidth: 3});