but leave it commented out because we never get fully back
enabled: true,
/*
onzoomend: function (domain) {
- // UNIX epoch
- var start = domain[0].getTime()/1000;
- var end = domain[1].getTime()/1000;
- var duration = end - start;
- // duration is now the diff of the "viewport in seconds"
- // FIXME
- var days = Math.round(duration / 86400 / 2);
+ var duration = (domain[1] - domain[0]) / 1000; // duration is now the diff of the "viewport in seconds"
+ // FIXME?
+ var days = duration / 86400;
if (days > 0) {
loaddays(this, element, days); // this = chart
}