Sha256: 2d7bc472bc3cab107c6504a648df98b8510659ade099981a27e0dfdb19101411

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

import "day";
import "interval";
import "time";

d3.time.month = d3_time_interval(function(date) {
  date = d3.time.day(date);
  date.setDate(1);
  return date;
}, function(date, offset) {
  date.setMonth(date.getMonth() + offset);
}, function(date) {
  return date.getMonth();
});

d3.time.months = d3.time.month.range;
d3.time.months.utc = d3.time.month.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/month.js
stripmem-0.0.3 lib/stripmem/public/components/d3/src/time/month.js
stripmem-0.0.2 lib/stripmem/public/components/d3/src/time/month.js
stripmem-0.0.1 lib/stripmem/public/components/d3/src/time/month.js