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

1687 Коммитов

Автор SHA1 Сообщение Дата
Kristofer Monisit 95c3c0b87a Bring bullet example up-to-date 2012-04-06 10:33:12 +08:00
Kristofer Monisit 02764fd2f3 Bring brush examples up-to-date 2012-04-06 10:29:02 +08:00
Kristofer Monisit c8c6292b26 Bring box example up-to-date 2012-04-06 10:14:06 +08:00
Kristofer Monisit 1fdebcd976 Bring bar examples up-to-date
Related #565
2012-04-06 09:58:38 +08:00
Kristofer Monisit dbfc36ddca Bring axis examples up-to-date
Related #565
2012-04-06 09:43:34 +08:00
Mike Bostock 3adff5ab57 Bring area & line examples up-to-date.
Related #565.
2012-04-04 10:44:22 -07:00
Kristofer Monisit 09fdab5349 Similar examples for area and area radial 2012-04-04 23:12:12 +08:00
Kristofer Monisit 41a8a86f52 Add example for usage of `defined` function
The `defined` function accepts a constant that is evaluated as
truthy or falsey, or a function that returns such truthy or falsey
value. If the result is truthy, then it means that datum is defined. If
falsey, then that datum is considered undefined and will not be
represented visually. This is useful in drawing multi-segmented line
or area charts, using just one SVG `<path>` directive.
2012-04-04 23:10:44 +08:00
Mike Bostock e65580968b Merge branch 'globals' of https://github.com/jasondavies/d3 into 2.9.0 2012-04-03 08:48:50 -07:00
Jason Davies cb37675107 Remove stray global "d3_time_weekdays". 2012-04-03 14:00:44 +01:00
Jason Davies 969645e900 Remove stray global "tween". 2012-04-03 13:59:38 +01:00
Mike Bostock c790c33468 Add generated files. 2012-03-29 22:11:25 -07:00
Mike Bostock 9c3038874e Merge branch 'master' of https://github.com/mmeisel/d3 into 2.9.0 2012-03-29 22:09:37 -07:00
Mike Bostock 39a74f49ae More efficient degenerate bin check. 2012-03-29 22:07:11 -07:00
Mike Bostock 80628239d5 Merge branch 'master' of https://github.com/jonseymour/d3 into 2.9.0 2012-03-29 22:01:48 -07:00
Mike Bostock 4a01fb17e2 Fix index and package specification. 2012-03-29 22:00:15 -07:00
Mike Bostock 40657dff99 Merge branch 'master' of https://github.com/zenmoto/d3 into stage-2.9.0 2012-03-29 21:57:47 -07:00
Mike Bostock d46ed98306 Merge branch 'xhr_header' of https://github.com/kitmonisit/d3 into stage-2.9.0 2012-03-29 21:57:28 -07:00
Mike Bostock 2099501dff Merge branch 'brush-ie9' of https://github.com/jasondavies/d3 into stage-2.9.0 2012-03-29 21:56:51 -07:00
Mike Bostock b9516e0eee Merge branch 'line-defined' into stage-2.9.0 2012-03-29 21:55:56 -07:00
Mike Bostock 00268cb36d Merge branch 'fix-interpolate-string' into stage-2.9.0 2012-03-29 21:55:27 -07:00
Mike Bostock 8f20ae46ed Merge branch 'fix-chord-group-order' into stage-2.9.0 2012-03-29 21:55:04 -07:00
Michael Meisel 76d353d3be Capture click events in zoom behavior to ensure they're cancelled. 2012-03-29 18:00:27 -07:00
Mike Bostock 40c731d688 Fix #434: chord groups returned in wrong order. 2012-03-28 09:43:18 -07:00
David Poncelow b906667c24 Merge remote-tracking branch 'upstream/master' 2012-03-23 10:18:45 -07:00
Jon Seymour f16141517a Add a test that a degenerate domain does not cause histogram to barf.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
2012-03-24 00:22:07 +11:00
Jon Seymour bf151c2877 histogram: deal with the degenerate domain without throwing an exception.
A histogram with a domain that has an extent of exactly 0 currently causes
the generated histogram to barf with an "undefined does not have .y" exception.

In order to avoid clients having to special case this degenerate case, modified
the loop so that the empty array is returned instead, in this case.

try {
    var
        scale=d3.scale.linear().domain([0,0]);

    d3.layout.histogram().bins(scale.ticks(3))([0]);
    console.log("ok");
} catch (e) {
    console.log("failed");
    throw e;
}

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
2012-03-23 23:30:08 +11:00
Jason Davies 3d701402bf d3.xhr: treat req.status === 0 as error.
This occurs during a failed cross-origin request, for example.
2012-03-23 12:06:03 +00:00
Michael Meisel 48c4d87632 Initial drag mousedown event needs to be cancelled, too. 2012-03-20 11:48:13 -07:00
Mike Bostock 2b0a3fed56 Merge branch 'area-closed' of https://github.com/jasondavies/d3 into line-defined 2012-03-19 15:49:09 -07:00
Mike Bostock 22b1c0ba49 Better implementation of defined.
The previous implementation had a bug where the original index (i) was not
preserved if the input data array were split. The new implementation eschews the
previous approach of branching based on whether the x- and y-properties are
defined as functions or constants, opting for the simpler functor approach. The
x- and y-values are also coerced to numbers, as appropriate.
2012-03-19 15:43:15 -07:00
Mike Bostock 1196f55b43 Optimize thin links. 2012-03-18 11:03:29 -07:00
Mike Bostock 8ea41735d9 Merge branch 'master' of github.com:mbostock/d3 2012-03-18 11:02:43 -07:00
Mike Bostock 9454e66775 Add Hive Plot example. 2012-03-17 16:18:59 -07:00
Mike Bostock ef7c743636 Add area.defined. 2012-03-16 17:40:58 -07:00
Mike Bostock e2c666ab67 Add line.defined. 2012-03-16 17:32:33 -07:00
Mike Bostock 7f38862f9f Use d3_identity instead of Object. 2012-03-16 17:17:32 -07:00
Jason Davies 9cd23f82b6 Use display: none for IE9 workaround.
Saves a line, too!
2012-03-16 17:46:21 +00:00
Jason Davies 35ef75d05f Add another note about the workaround.
For consistency.
2012-03-16 16:52:44 +00:00
Jason Davies 24058a9db4 Better workaround for IE9 bug.
I was mistaken in the previous commit (probably forgot to run make!)
2012-03-16 16:50:54 +00:00
Jason Davies 2e83e39f4d An even better workaround for an IE9 bug.
It's as if IE9 is forgetting about the visibility: hidden rect, and
doing *something* to it jogs its memory.
2012-03-16 16:42:02 +00:00
Jason Davies 005e177e6e Reinstate pointer-events: all on parent <g>.
This is required for the invisible resize handles.  Also added comment
about IE9 workaround.
2012-03-16 16:21:03 +00:00
Jason Davies dad57834df Fix background rect brush events for IE9.
I'm not sure pointer-events: all is necessary on the parent <g>, so I've
removed it assuming it's sufficient on the background <rect>.
2012-03-16 14:49:10 +00:00
Kristofer Monisit ce0de3d7d8 Set X-Requested-With header for all cases 2012-03-16 09:14:48 +08:00
Mike Bostock 3da58981bd Merge pull request #526 from mjijackson/readme
Add note about running the tests
2012-03-15 08:28:21 -07:00
Kristofer Monisit aba3c572bb Add X-Requested-With: XMLHttpRequest header to xhr 2012-03-15 16:56:43 +08:00
David Poncelow 18724b081a Fixed version specification for new sizzle dependency. 2012-03-08 16:08:41 -08:00
David Poncelow 7ac9a5db20 Add sizzle selector dependency to node module build. 2012-03-08 15:44:09 -08:00
Mike Bostock 21fe6d10f2 Fix a bug when interpolating exponent notation.
We weren't properly detecting "1.e2" as a valid number.
2012-03-08 10:56:15 +01:00
Mike Bostock d3c3324386 Merge pull request #585 from cscheid/master
fix typo on path
2012-03-06 17:41:13 -08:00