d3.js でテスト用に、5000個のランダムなデータセットを作成
var w = 1000;
var h = 1000;
var data = d3.range(5000).map(function() {
return {x: Math.floor(Math.random() * w) , y: Math.floor(Math.random() * h)};
});
More than 5 years have passed since last update.
d3.js でテスト用に、5000個のランダムなデータセットを作成
var w = 1000;
var h = 1000;
var data = d3.range(5000).map(function() {
return {x: Math.floor(Math.random() * w) , y: Math.floor(Math.random() * h)};
});
Register as a new user and use Qiita more conveniently