Граф коммитов

611 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 2810d3cc1b Fix for duplicate keys in selection.data.
Fixes #997. The enter, update and exit selections are now initialized as fixed-
length arrays rather than dynamically populated with nulls. If duplicate keys
are used for either data or selected elements, only the first datum or element
is considered and subsequent data or elements are ignored.
2013-01-08 15:18:59 -08:00
Jason Davies 475b18f2df Allow projection.invert to return null.
Previously this would throw errors.
2013-01-05 01:45:43 +00:00
Mike Bostock 633fd273bd Merge branch 'geo-circle' of https://github.com/jasondavies/d3 into 3.0.2 2013-01-01 15:52:03 -08:00
Mike Bostock 2e072713e3 Fix path.bounds with fallback stream.
Fixes #987.
2013-01-01 15:50:17 -08:00
Jason Davies f6891ef901 Fix d3.geo.circle.origin.
3D rotations are not commutative, so we must perform an inverse rotation
to move something from origin [0, 0] to [λ, φ].  Normally we are moving
origin [λ, φ] to [0, 0].
2012-12-29 13:09:12 +00:00
Mike Bostock 8b0c10f8e5 Merge branch 'fix-geo-bounds-collection' of https://github.com/natevw/d3 into 3.0.1 2012-12-28 09:18:41 -08:00
Mike Bostock cd1b2d0696 Merge branch 'geo-centroid' of https://github.com/jasondavies/d3 into 3.0.1 2012-12-28 09:18:15 -08:00
Nathan Vander Wilt 33bf32723f test for problematic nesting case 2012-12-28 10:37:24 -06:00
Jason Davies e7ea256dc1 d3.geo.centroid: fix handling of mixed geometries. 2012-12-27 12:57:52 +00:00
Jason Davies 963a5e862e Fix treemap slice-dice mode.
For even depths, it was falling back to Math.min(rect.dx, rect.dy)
instead of always "dicing" (rect.dy).
2012-12-25 02:51:36 +00:00
Mike Bostock 315e3ab7b8 Fix benchmark by restoring test data file. 2012-12-20 22:47:10 -08:00
Mike Bostock abaa6f1645 Fix broken tests due to missing sample data. 2012-12-20 15:37:09 -08:00
Mike Bostock 6d27e13f9f Move touch example to tests. 2012-12-19 16:50:07 -08:00
Mike Bostock d354200f5e Move more transform tests. 2012-12-19 12:55:44 -08:00
Mike Bostock 2782e793e3 Move mouse test. 2012-12-19 12:53:05 -08:00
Mike Bostock e6da19f7d0 Move transform tests. 2012-12-19 12:52:35 -08:00
Mike Bostock b5021f13c8 Oops, add missing file. 2012-12-19 12:20:14 -08:00
Mike Bostock 223a047b3a Move sample HTML file to test/data. 2012-12-19 11:49:16 -08:00
Mike Bostock 4e32681308 Use identity projection when null. 2012-12-18 20:21:22 -08:00
Mike Bostock b632cf1902 Coerce to number for d3.quantile.
This avoids string concatentation on fractional p-values.
2012-12-18 11:38:12 -08:00
Jason Davies 5396d39965 Fix CCW polygon detection issue.
The south pole rotation could result in line segments that go through
the poles.  These are characterised by a 180° longitudinal difference.
These cases were not handled properly by the approximation algorithm,
but it now handles both north and south pole cases.
2012-12-18 01:00:58 +00:00
Jason Davies 8e8699bbd5 Fix speling. 2012-12-14 13:40:45 +00:00
Jason Davies 1a7810bddd Adjust threshold for distortion resampling.
Includes test case.
2012-12-14 13:05:59 +00:00
Jason Davies 01a7e187ea Add test for pointRadius function type coercion. 2012-12-14 01:12:30 +00:00
Jason Davies b085292ea8 Add type coercion for d3.geo.path.pointRadius. 2012-12-13 19:09:15 +00:00
Jason Davies e3b7823f74 Fixes for d3.geo[.path].centroid.
Mixed geometries should now be supported correctly for both.
2012-12-13 13:34:52 +00:00
Jason Davies 44425c1874 Update centroid tests to use undefined. 2012-12-13 13:10:44 +00:00
Jason Davies 5e0c131f32 d3.geo.centroid: {Feature,Geometry}Collection.
This computes the centroid of the geometries with the highest dimension.
2012-12-13 13:00:51 +00:00
Jason Davies 3d84b49ae4 Better handling of ambiguous centroids.
Rather than doing something like picking the last seen point, return
an undefined centroid if it is ambiguous.

Users can decide what to do, e.g. when picking an origin for a rotating
globe, using the last coordinate in a MultiPoint or LineString seems
reasonable in an ambiguous situation.
2012-12-13 12:48:52 +00:00
Jason Davies b87bcbc22a Implement d3.geo.centroid via d3.geo.stream. 2012-12-13 12:22:41 +00:00
Jason Davies b8ab3ad3ef Benchmark U.S. counties.
This is useful to see how fast we can process polygons that don't
intersect with the clip edge.
2012-12-13 10:57:38 +00:00
Mike Bostock 1c529da03e Silence bogus test failures. 2012-12-12 21:22:54 -08:00
Jason Davies 37f64b74f2 Fix streaming polygon clipping. 2012-12-13 02:01:04 +00:00
Mike Bostock 08b4357087 Don't emit closing points in rings.
This breaks d3.geo.path area & centroid, and d3.geo.area. Fix incoming.
2012-12-12 16:54:58 -08:00
Mike Bostock 32e13768bd Merge branch 'geo-refactor' of https://github.com/jasondavies/d3 into 3.0 2012-12-12 14:13:03 -08:00
Mike Bostock 2e88ce7f03 Add tests for d3.geo.stream. 2012-12-12 13:56:41 -08:00
Jason Davies 33e24962be Refactor clipping to use streams.
Work in progress: everything is treated as lines at the moment.
2012-12-12 21:33:59 +00:00
Jason Davies 876a6542d8 Minor optimisation. 2012-12-12 13:51:10 +00:00
Jason Davies b1d078db1a More robust handling of polygons with empty ring(s).
This is a valid situation but won't usually happen at the moment since
we don't return empty rings when clipping.
2012-12-12 12:01:36 +00:00
Jason Davies 913173ea7f Graticule: s/GeometryCollection/MultiLineString. 2012-12-12 11:57:25 +00:00
Jason Davies 31d59cfc93 Fix d3.geo.circle.origin. 2012-12-12 08:51:31 +00:00
Jason Davies eb7a56e943 Simplify.
This includes a minor tweak to d3_geo_type to avoid errors if the object
is null e.g. due to being removed by clipping.
2012-12-12 00:11:08 +00:00
Jason Davies bc06b2ec57 Refactor d3.geo.projection to be more data-driven. 2012-12-11 21:43:14 +00:00
Jason Davies 34180a7485 More accurate winding order check. 2012-12-10 23:09:14 +00:00
Jason Davies 7dfdcda0b2 d3.geo.area: fix holes. 2012-12-10 12:01:36 +00:00
Jason Davies a9e47f3b8a d3.geo.area: improve handling of tiny polygons. 2012-12-09 20:46:14 +00:00
Jason Davies e0c91c1e27 d3.geo.area: return positive areas. 2012-12-09 20:32:01 +00:00
Jason Davies 7860b0d31e Add d3.geo.area.
See #941.
2012-12-09 19:42:05 +00:00
Jason Davies 2467834ec2 Add d3.geo.centroid.
Polygons are temporarily treated as lines while I work on adding area
weighting.

See #941.
2012-12-09 11:29:29 -08:00
Jason Davies 86e159872f s/º/°/g 2012-12-08 14:48:54 +00:00
Jason Davies 915f044b8f Fix loss of significance for d3.geom.polygon.area. 2012-12-06 10:40:06 +00:00
Jason Davies 531b443c09 Take into account clipping when computing centroids. 2012-12-05 21:30:13 +00:00
Jason Davies bf180cb8a0 Take into account clipping when computing areas.
This can be optimised later.
2012-12-05 20:35:50 +00:00
Jason Davies 25098ab0ff Add Sphere centroid and area. 2012-12-05 20:04:18 +00:00
Jason Davies 050b1c319e Define a new "Sphere" GeoJSON type.
This allows us to generate the clip outline for whole-earth projections
with arbitrary rotations.

Internally, this is interpreted as a polygon with null coordinates.
2012-12-05 18:39:57 +00:00
Jason Davies 36702f197f Revert "Restore support for empty & ccw polygons."
This reverts commit 7712dcd59e.

Unfortunately, this caused empty polygons to be interpreted as "the
whole sphere", which is undesirable.  Also, it is more useful to have a
definite graticule outline, at least for a graticule that doesn't cover
the whole sphere.
2012-12-05 18:16:35 +00:00
Mike Bostock 7712dcd59e Restore support for empty & ccw polygons. 2012-12-05 09:48:24 -08:00
Jason Davies 4d268a7966 Add some test cases for small U.S. counties.
These were originally anticlockwise in examples/data/us-counties.  I
have corrected the ordering for these tests.
2012-12-05 09:14:07 -08:00
Jason Davies e6ab7219b8 Detect polygon direction using area calculation.
This fixes various problems that were occurring due to winding numbers
being tricky on a finite sphere.

This also includes some cleanup and fixes for degenerate points.
2012-12-05 09:14:07 -08:00
Jason Davies acbce53ec5 Fix antemeridian clip point ordering. 2012-12-05 09:13:51 -08:00
Jason Davies 210085d3ea Fix antemeridian degeneracy handling. 2012-12-05 09:13:13 -08:00
Jason Davies f58b5db715 Fix path.centroid for polygons with holes.
The centroid was not being subtracted for interior polygon rings
(holes), hence it was appearing too far to the right.  The winding order
is ignored.
2012-12-04 20:56:14 +00:00
Jason Davies ba8c8ce170 Add benchmarks and performance improvement.
Dense graticule: 140→110ms/op.
Circle polygons: 69→61ms/op.
Spiral polygons: 3.3→2.6ms/op.
2012-11-21 15:35:44 +00:00
Jason Davies cba8a77bad Improve Polygon clipping.
1. We no longer perform an equality check on GeoJSON polygon endpoints,
since we know that the first and last points should be equal.
2. However, there are special cases where a polygon just touches the
clip edge, generating two coincident intersection points.  Here we avoid
generating a coincident point, and continue as normal.
3. Another special case is where we have coincident intersection points
e.g. due to a self-intersecting polygon.  Here we continue calculating
the winding number as if this is a closed polygon (so we know whether to
insert a polygon around the whole clip edge).
2012-11-20 22:20:54 +00:00
Jason Davies 28fb58b635 Fix polygon clipping. 2012-11-19 13:05:43 +00:00
Mike Bostock 2fc940787f Delete d3.geo.circle clip test. 2012-11-18 10:16:01 -08:00
Mike Bostock 3297cf23e0 Collection centroids are undefined.
It's not always meaningful to define the centroid of a collection because
collections are heterogenous: they can contain points, lines, polygons, or all
these types together. The previous code ignored objects that had dimensionality
lower than the collection's maximum dimensionality; for example, ignoring lines
and points if the collection contains polygons. While this may be what you want,
this feels magical and it's simpler to just define the centroid as undefined.
I'd prefer to force the user to state what they want explicitly, say by creating
a MultiPolygon that merges together a collection's polygons.
2012-11-18 08:40:57 -08:00
Jason Davies ad30a774f0 Add another resampling test for points near poles.
This tests the fix in 091f389499.
2012-11-16 09:35:37 +00:00
Jason Davies f9f4e265f4 Add tests for longitude wrapping. 2012-11-16 09:08:46 +00:00
Jason Davies fbbbfbf239 Add failing test case for Albers artefacts. 2012-11-14 14:51:11 +00:00
Jason Davies dbd0745a8b Another fix for d3.geo.circle Polygon exteriors. 2012-11-14 14:07:33 +00:00
Jason Davies 0bb3d29539 Fix d3.geo.circle Polygon exterior insertion. 2012-11-14 13:24:16 +00:00
Jason Davies 18de5cd5c1 Fix d3.geo.circle clipping of [Multi]Point. 2012-11-14 12:44:29 +00:00
Jason Davies 8ac44493ce Fix resampling along antemeridian. 2012-11-14 11:50:37 +00:00
Jason Davies 112ed8489a Update Phillipines test for d3.geo.albers. 2012-11-13 13:29:03 +00:00
Jason Davies 3c4af15ac6 Fix d3.geo.circle error.
Fixes a regression introduced in
ea7f617e92.

Also fixes a typo in an unrelated test name.
2012-11-13 13:08:06 +00:00
Jason Davies 38c304b68d Add test for d3.geo.circle.
Fixes an error when no angle is explicitly set.
2012-11-10 21:57:56 +00:00
Mike Bostock 835c3e12d0 Add support for 0, - and _ fill padding.
For example, "%-d" formats the day with no padding, "%_d" formats the day with
space-padding equivalent to "%e", and "%0d" formats the day with zero-padding
equivalent to "%d".
2012-10-30 14:42:05 -07:00
Mike Bostock 5cacd70702 Configurable graticule precision. 2012-10-29 19:49:35 -07:00
Mike Bostock 903fbb0a9b Merge branch 'format-align' of git://github.com/jasondavies/d3 into 3.0
Conflicts:
	src/core/format.js
2012-10-29 09:35:01 -07:00
Mike Bostock 6d7b74241a Merge branch 'locale' of git://github.com/jasondavies/d3 into 3.0 2012-10-29 09:23:18 -07:00
Mike Bostock 92ae464cc9 Fix another Voronoi bug with N=2. 2012-10-26 17:29:00 -07:00
Jason Davies b04954bc9f Fix drawing of [Multi]Point geometries. 2012-10-25 18:31:12 +01:00
Mike Bostock 3af91c35e4 Greedy evaluation of transition.{style,attr,text}.
Rather than computing the ending value when the transition starts, the ending
value is computed when the transition is scheduled. This gives more predictable
behavior and makes it easier to debug evaluation errors since they occur
immediately (during user code) rather than inside a d3_timer callback.

The behavior of attrTween and styleTween are unchanged, since the interpolator
can only be constructed once the starting value is known. This commit also
removes d3.tween; I may add this back in a future commit, but I think there is
probably a better way to specify an interpolator for transitions.
2012-10-16 16:47:20 -07:00
Mike Bostock 0794607c39 Changes to transition start & end.
The start event is now fired before any tweens are evaluated, such that you can
do any necessary preprocessing work beforehand. The end event no longer causes
the transition id to be inherited, since we can do that more elegantly now using
transition.transition.
2012-10-16 14:02:08 -07:00
Mike Bostock 1e4b261b39 No more private state for transitions!
This commit moves easing and event listeners down to the node's transition
object, allowing these fields to be modified via post-selection. This removes
the last vestige of private state for transitions.

This required a few changes to tests that depended on the order of callbacks for
tweens and events. Because timers are called back in reverse order, tweens are
now initialized in reverse order, and listeners are now invoked in order.
2012-10-11 12:39:24 -07:00
Mike Bostock d9a1281e08 Fix #438 - degenerate voronoi polygons. 2012-10-06 16:40:37 -07:00
Mike Bostock a77079280a Add tests for d3.geom.quadtree.
Also remove backwards-compatibility for [x, y] input.
2012-10-06 13:19:05 -07:00
Mike Bostock d580a64eba Merge branch 'geo-centroid' of git://github.com/jasondavies/d3 into 3.0 2012-10-06 07:08:59 -07:00
Jason Davies 3cf08d3df1 Add tests and fixes for d3.geo.path().centroid.
These are from #765.
2012-10-06 10:11:47 +01:00
Mike Bostock d3f855ae01 Rename d3.v3.js to d3.js.
We'll still use the major-versioned name file for d3js.org, but this is simpler.
2012-10-05 18:46:05 -07:00
Mike Bostock 3fe30782da Merge branch 'projection' of https://github.com/jasondavies/d3 into 3.0 2012-10-05 17:15:19 -07:00
Mike Bostock c3635192d8 Remove backwards-compatibility for d3.xhr. 2012-10-05 17:05:59 -07:00
Jason Davies d10868bb69 Rename a few variables for consistency. 2012-10-06 01:05:41 +01:00
Mike Bostock 319d9954b9 Remove d3.split. 2012-10-05 16:58:19 -07:00
Mike Bostock ea790608ac Remove d3.geo.azimuthal.
Remove d3.geo.albers origin.
2012-10-05 16:56:49 -07:00
Jason Davies 78815b6783 Reinstate d3.geo.path().centroid.
Also adds support for previously unsupported object types e.g. Points
and LineStrings.
2012-10-06 00:54:21 +01:00
Mike Bostock 0b1b9fbbda Remove d3.first and d3.last.
I never used these. They're fired!
2012-10-05 16:44:48 -07:00
Mike Bostock aa2e17e94c Merge branch 'projection' into 3.0
Conflicts:
	src/core/core.js
2012-10-05 16:35:13 -07:00
Mike Bostock 044f61507c Merge branch 'transition-reselect' into 2.11 2012-10-05 16:29:56 -07:00
Jason Davies d58bbdd6ea Fix d3.geo.path().area. 2012-10-06 00:03:53 +01:00
Mike Bostock 60a25641af Use style rather than attr for "text-anchor".
This makes it easier to override via stylesheet.
2012-10-05 14:50:34 -07:00
Mike Bostock 223d6aa715 Transition reselection.
It is now possible to reselect elements with scheduled transitions and redefine
associated tweens; this enables "post-selection" to customize the behavior of
reusable components undergoing transitions, such as an axis. This commit also
makes it much easier to sequence transitions.

Previously, a transition's tweens were stored privately by the transition and
could only be accessed through the transition. This made it impossible to modify
transitions created by components: the transition is not accessible externally,
and cannot be reselected from the document. Consider the following snippet:

  g.select(".x.axis")
      .call(xAxis)
    .selectAll("text")
      .attr("dy", null);

If `g` is a selection, then this code alters the appearance of the axis as
expected. However, if `g` is a transition, then transition.selectAll creates a
new concurrent transition, and now multiple tweens compete to set the "dy"
attribute. Oy!

Under the new design, an element's scheduled tweens are stored semi-privately on
the node (in the existing node.__transition__). Transition parameters can thus
be reselected and modified by transitions that share the same id. If you now
reselect a transitioning element, you modify the transition rather creating a
competing transition; this should be less surprising and allow greater control.

As a side-effect of this change, it is no longer possible to schedule concurrent
transitions on the same element, even with the same id: only one transition may
be active on a given element at any time. (Note that you can still schedule
multiple future transitions on the same element, and concurrent transitions on
different elements.) For example, you could previously schedule overlapping
transitions with different easing functions, delays or durations, provided you
were careful to avoid conflict. This seems like a relatively obscure use-case
compared to modifying a transition, so I believe this is a reasonable change.

This commit also changes transition.transition, such that the returned
transition starts at the end of the originating transition, rather than
overlapping. This makes it much easier to schedule sequenced transitions without
the complexity of transition.each("end") and d3.select(this).

Also, transitions are now simply arrays of nodes, consistent with selections!
2012-10-05 13:36:11 -07:00
Jason Davies 13c91c2e01 Fix a few bugs.
Hurrah for tests!
2012-10-02 11:25:35 +01:00
Mike Bostock c9cffe7a62 Fix for some redundant points on resampling.
Also restore path.area and add a few tests.
2012-10-01 22:39:17 -07:00
Mike Bostock d27a70f0c0 Refactor d3_geo_type. 2012-10-01 21:50:18 -07:00
Mike Bostock bdc7c3f9e6 Add tests for d3.geo.bounds. 2012-10-01 20:39:38 -07:00
Mike Bostock 95c88ebd06 Enforce built-in precision for outline, too. 2012-10-01 18:20:14 -07:00
Mike Bostock 019583e316 Merge branch 'color' into 2.11 2012-09-28 16:16:53 -07:00
Mike Bostock 428ea4ff92 Fix missing string coercion for d3.tween. 2012-09-28 15:47:13 -07:00
Mike Bostock 78a0284f62 Add @jasondavies' tests for color interpolation. 2012-09-28 15:41:55 -07:00
Mike Bostock 99c444ddaf path(null) should return null.
This frequently happens when a feature is fully clipped.
2012-09-26 21:01:42 -07:00
Mike Bostock 77adc10d86 Checkpoint integration of geo/projection plugin.
This is still a work in progress, but it's a start.
2012-09-23 16:49:11 -07:00
Mike Bostock 8f5ede349e Fix #816 - getters for projection and pointRadius. 2012-09-22 16:08:27 -07:00
Mike Bostock 1bfd9a48d3 Revert previous commit; move urlencode to plugin. 2012-09-19 18:54:36 -07:00
Mike Bostock f6c8059dd5 Add d3.urlencode.
And d3.xhr now detects if the data has a type attribute; if so, this is used to
set the Content-Type header if one has not already been specified. In
conjunction with d3.urlencode, it is now easy to post encoded parameters.
2012-09-19 18:37:23 -07:00
Mike Bostock 79c9737d70 Fix d3.json. 2012-09-19 10:39:24 -07:00
Mike Bostock 8bfd4e91b5 Merge branch 'xhr-accept' of https://github.com/jasondavies/d3 into xhr2
Conflicts:
	src/core/xhr.js
2012-09-18 16:06:25 -07:00
Mike Bostock 1c32d23fa4 More flexible XHR framework.
This is backwards-compatible, yet adds numerous features to d3.xhr. You can now:

  * Use standard node-style callbacks (fixes #473).
  * Abort in-flight requests.
  * Listen for progress events.
  * Listen for load, error and abort events separately.
  * Make POST requests (or any other method), including data.
  * Set arbitrary request headers.
  * Have multiple listeners on requests.
2012-09-18 15:49:03 -07:00
Jason Davies 67e04613ad Add "*/*" to Accept header.
This avoids a 406 error from servers that don't support a given mime
type.
2012-09-05 15:33:09 +01:00
Mike Bostock 80009768b6 Fix for JavaScript's broken Date API. 2012-09-03 19:18:32 -07:00
Mike Bostock 05da7af849 Fix #771 for singleton ordinal domains. 2012-08-16 13:26:14 -07:00
Jason Davies 4946a8cf33 d3.format: support negative zeroes. 2012-08-16 08:32:47 +01:00
Jason Davies 22bf99605a d3.format: support center-align. 2012-08-15 23:58:58 +01:00
Jason Davies 0c3ec49dd9 d3.format: support align and non-decimal formats.
This also fixes a minor discrepancy with Python's implementation:
format("013,d")(-42000000) now returns "-0,042,000,000" instead of
"-042,000,000".
2012-08-15 23:25:15 +01:00
Jason Davies 55acabc8e9 d3.format: support locales.
Note: the previous commit broke some tests relating to locale date
parsing, due to expecting "%m/%d/%y". On my system, the "en_US" locale
uses "%m/%d/%Y" by default. I've updated the tests to use %Y.
2012-08-13 19:58:53 +01:00
Mike Bostock cded852ba4 Add d3.lab and d3.hcl.
Includes d3.interpolateLab and d3.interpolateHcl.
2012-08-08 21:22:21 -07:00
Mike Bostock 952abefad0 Add d3.random.{logNormal,irwinHall}. Fixes #571. 2012-08-08 20:42:12 -07:00
Mike Bostock e42eb90ca8 Add d3.scale.threshold. Fixes #755. 2012-08-08 20:33:30 -07:00
Mike Bostock 15ba641fa3 Merge remote-tracking branch 'origin/map' into 2.10.0
Conflicts:
	src/core/transition-attr.js
	src/core/transition-style.js
2012-08-08 18:08:47 -07:00
Mike Bostock 7ac1ae7c77 Merge remote-tracking branch 'origin/delimiter-separated-values' into 2.10.0 2012-08-08 17:36:01 -07:00
Mike Bostock 7c6a7fd0d5 Merge remote-tracking branch 'origin/ordinal-band-padding' into 2.10.0 2012-08-08 17:35:19 -07:00
Mike Bostock 90ae6c0b21 Merge remote-tracking branch 'origin/custom-line-interpolation' into 2.10.0
Conflicts:
	src/svg/line.js
2012-08-08 17:34:25 -07:00
Mike Bostock 07f72be0aa Multi-value map support for on. 2012-08-05 16:29:04 -07:00
Mike Bostock 74596a90f7 Remove support for functions that return maps. 2012-08-05 15:52:10 -07:00
Mike Bostock f2b45c132d Multi-value map support for classed. 2012-08-05 14:54:02 -07:00
Mike Bostock ce8852b9b4 Multi-value map support for property. 2012-08-05 09:53:33 -07:00
Mike Bostock 5c1dd6d904 Multi-value map support for style. 2012-08-05 09:53:07 -07:00
Mike Bostock 1976674fc7 Multi-value map support for attr. 2012-08-05 09:52:31 -07:00
Mike Bostock 6dd99394d5 Merge branch 'fix-minus' into 2.9.8 2012-08-02 17:50:14 -07:00
Mike Bostock da3131c876 Use hyphen instead of unicode minus for negatives.
Although the unicode minus is typographically correct, using the standard hyphen
is more conventional (and is compatible with standard parsing).
2012-08-02 17:48:26 -07:00
Mike Bostock 7133162c2a Fix nice implementation for time scales.
The previous implementation didn't handle polylinear domains correctly.
2012-07-31 19:38:36 -07:00
Mike Bostock ea48a4a5af Merge branch 'bisect-large' of git://github.com/jasondavies/d3 into 2.9.7 2012-07-31 13:30:39 -07:00
Mike Bostock cb832c147b Fix d3.time.dayOfYear test. 2012-07-31 13:29:20 -07:00
Mike Bostock 7905b83694 Merge branch 'fix-time-tests' of git://github.com/jasondavies/d3 into 2.9.7 2012-07-31 13:20:26 -07:00
Jason Davies 65a464582d d3.bisect: support very large arrays. 2012-07-31 14:00:26 +01:00
Mike Bostock 90bfec5d88 Merge branch 'fix-time-full-year' into 2.9.7 2012-07-30 18:18:48 -07:00
Mike Bostock 151d5fe054 Merge branch 'fix-time-dayOfYear' of git://github.com/jasondavies/d3 into 2.9.7 2012-07-30 18:13:32 -07:00
Mike Bostock d449be9855 Merge branch 'transition-filter' of git://github.com/jasondavies/d3 into 2.9.7 2012-07-30 18:12:37 -07:00
Jason Davies 1e69f5e7b9 Fixes custom timezone tests for Node.js 0.8.x.
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.
2012-07-25 21:35:03 +01:00