0 pears
2 pears
4 pears
6 pears
0 apples
2 apples
4 apples
6 apples
8 apples
10 apples
// this is a chart made with d3 (http://d3js.org/) // the basic interface you can use (press CMD+s to evaluate) this.xUnit = 'apples'; this.yUnit = 'pears'; this.data = Array.range(0, 10).collect(function(i) { return {x: i, y: Numbers.random(0, i+1)} }); this.update();