Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 4, 2012
Commits on Aug 1, 2012
  1. Fix nice implementation for time scales.

    The previous implementation didn't handle polylinear domains correctly.
Commits on Jul 31, 2012
  1. Fix d3.time.dayOfYear test.

Commits on Jul 25, 2012
  1. @jasondavies

    Fixes custom timezone tests for Node.js 0.8.x.

    jasondavies committed
    The process.env.TZ trick no longer seems to work. The fix automatically
    adds an offset to the minutes being set, relative to the current
    timezone. It assumes that the dates being tested in the scope are not in
    DST, since the offset is relative to the timezone offset at the epoch.
Commits on Jul 23, 2012
  1. @jasondavies
Commits on Jul 17, 2012
  1. Fix #711 for years in the first century.

    Alas, the JavaScript Date constructor is Y2K-centric.
Commits on Jul 10, 2012
  1. @jasondavies

    Convert 2-digit years according to POSIX.

    jasondavies committed
    This is also the convention used by Python 1.5.2+. Values 69-99 are
    mapped to 1969-1999, and values 0–68 are mapped to 2000–2068.
Commits on Jun 29, 2012
Commits on Jun 1, 2012
  1. @bdon
Commits on Feb 29, 2012
  1. Fixes #576: leap year bug in d3.time.format.

    We need to set the date fields from year down, rather than in arbitrary order.
Commits on Feb 21, 2012
Commits on Feb 20, 2012
  1. Add d3.time.{interval}.round.

Commits on Feb 19, 2012
  1. Add tests for interval.offset.

    Also, don't modify the passed-in date; for consistency with other methods, and
    for convenience over performance, return a new date.
  2. Add interval.range, and time.scale.nice.

    This commit provides a standard interface for time intervals:
      interval.offset(date, k)
      interval.range(start, stop, step)
    All local-time intervals (such as have a UTC-equivalent interval,
    available as interval.utc (such as
    Fixes #463. Note that for the time.scale, an interval function is required to
    nice (such as In the future, we might relax that to allow a count
    of ticks, similar to the ticks method, but in that case we'd also need the
    ability to floor to a given tick number (e.g., every other week) and likewise
    for ceil. This seems like a reasonable first implementation.
  3. Add interval.ceil. Fixes #453.

Commits on Feb 18, 2012
  1. Consolidate everything into d3.v2.js.

    Rather than producing separate files for each module, the default build now
    produces a single file. This should encourage better page-load performance as
    the files were relatively small. Also, it's easier to deal with only one file
    rather than many, especially if you're not quite sure what the dependencies are.
    You may still create minimized builds, if you don't want every feature.
    This commit also demotes the chart components to the examples directory, rather
    than keeping them as part of the core library. As always, D3 is not a charting
    library, and these were ever only intended to serve as examples.
Commits on Jan 29, 2012
  1. Sub-second and multi-year ticks for time scales.

    Fixes #428. This is built on top of existing tick support for linear scales: for
    small intervals, a linear scale computes ticks based on milliseconds; for large
    intervals, a linear scale computes ticks based on fractional years. This commit
    also extends the time scale's formatter to display milliseconds.
Commits on Oct 12, 2011
  1. Fix a daylight savings bug in d3.time.format.

    We weren't computing the day-of-year number correctly, which affected both day
    number and week number directives (%j, %U, and %W).
  2. Add extended ISO 8601 support.

    The d3.time.format.iso is designed to be compatible with the default JSON
    serialization of dates, which includes milliseconds. So, d3.time.format now
    supports the %L directive for formatting and parsing milliseconds. This commit
    also changes d3.time.format.iso to use native ISO date methods, if available.
Commits on Oct 7, 2011
  1. @jasondavies

    Make toString return #RRGGBB for all colours.

    jasondavies committed
    This breaks a test case that ensures d3.hsl(x) == d3.hsl(d3.hsl(x)).
    Fixes #333.
Commits on Aug 22, 2011
  1. Add test for time scale.copy.

Commits on Aug 15, 2011
  1. Add test for time.format.utc.

  2. Add test for time.format.

  3. Add test for time.format.iso.

  4. Add test for time.years.

  5. Add test for time.year.

  6. Add test for time.weeks.

  7. Add test for time.week.

  8. Add test for time.seconds.

Something went wrong with that request. Please try again.