Sha256: c8a4a83f77094c0bb0d3738ed6a36dc270fa9769c86f7a02889028018c5409e9

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

import "interval";
import "time";

d3.time.minute = d3_time_interval(function(date) {
  return new d3_time(Math.floor(date / 6e4) * 6e4);
}, function(date, offset) {
  date.setTime(date.getTime() + Math.floor(offset) * 6e4); // DST breaks setMinutes
}, function(date) {
  return date.getMinutes();
});

d3.time.minutes = d3.time.minute.range;
d3.time.minutes.utc = d3.time.minute.utc.range;

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stripchart-0.0.3 lib/stripchart/public/components/d3/src/time/minute.js
stripmem-0.0.3 lib/stripmem/public/components/d3/src/time/minute.js
stripmem-0.0.2 lib/stripmem/public/components/d3/src/time/minute.js
stripmem-0.0.1 lib/stripmem/public/components/d3/src/time/minute.js