Skip to content

Instantly share code, notes, and snippets.

@trinary
Created October 12, 2013 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trinary/6946731 to your computer and use it in GitHub Desktop.
Save trinary/6946731 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/nzpmNo5.png"}
var data = [{k: 1, v: [{x: 3}, {x: 2}, {x: 1}]},{k:2, v: [{x: 2}, {x: 1}, {x:3}]}];
data.forEach(function(d) {
d.v.sort(function(a,b) {return a.x - b.x});
});
console.log(data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment