Changeset 301 for django_apps/running/static
- Timestamp:
- Apr 7, 2011, 8:56:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
django_apps/running/static/year-total.js
r300 r301 1 1 function yearTotalGraph(data, binder) { 2 if (data.length == 0) { 3 return; 4 } 2 5 var start = data[0].x; 3 6 var end = data[data.length - 1].x; … … 33 36 pv.search.index(data, d2, function(d) d.x) + 1); 34 37 fx.domain(d1, d2); 35 fy.domain(scale.checked ? [0, pv.max(dd, function(d) d.y) ] : y.domain());38 fy.domain(scale.checked ? [0, pv.max(dd, function(d) d.y) * 1.1] : y.domain()); 36 39 return dd; 37 40 })
Note:
See TracChangeset
for help on using the changeset viewer.