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

224 Коммитов

Автор SHA1 Сообщение Дата
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 342924c23f Bump version number to appease Bower. 2012-09-14 12:48:53 -07:00
Mike Bostock d123998523 Add component.json to appease Bower. 2012-09-14 12:38:35 -07: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 e42eb90ca8 Add d3.scale.threshold. Fixes #755. 2012-08-08 20:33:30 -07:00
Mike Bostock 2d9fe177d0 Expose d3.tween. Fixes #747.
This is a little bit more verbose, but it avoids additional optional arguments
on transition.{attr,style}.
2012-08-08 17:53:46 -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 d6d2792b53 Allow static localization of d3.time.format.
You can now build a locale-specific version of d3.time.format. For example,

  LANG=fr_FR make

will pull strings from the time/format-fr_FR.js file, rather than en_US.
2012-08-07 12:21:49 -07:00
Jason Davies e9abea57d3 More efficient handling of null transforms.
Avoid unnecessary object creation.
2012-07-31 13:42:48 +01:00
Mike Bostock 4c66d7d16e Merge branch 'beautify' into 2.9.7 2012-07-30 19:43:47 -07:00
Jason Davies 1893f2941b Add transition.filter. Fixes #726.
Behaves the same as selection.filter.
2012-07-25 10:02:49 +01:00
Mike Bostock fd308af6ca Beautify d3.v2.js.
The main advantage of beautification is that we can add abundant source comments
to the original files without increasing the size of d3.v2.js.
2012-07-19 11:07:36 -07:00
Mike Bostock 66b439d433 Add d3.tsv for tab-separated values.
This makes the previous d3.csv code a bit more generic via a d3_dsv (delimiter-
separated values) module generator. Fixes #501. (Thanks, @vlandham!)
2012-06-28 12:58:39 -07:00
webmonarch 831a241894 Removing make prepare target. 2012-04-26 09:27:35 -07:00
webmonarch 7b5175c75f removing make package.json dep on d3.vs.json, since it've been removed in the source code 2012-04-25 23:01:47 -07:00
webmonarch 8759241f59 biting the bullet, renaming install target to prepare (more in-line with it's meaning) 2012-04-25 21:51:18 -07:00
webmonarch d70b00cd60 adding make prepare (which calls make install). More inline with make traditions 2012-04-25 18:59:42 -07:00
webmonarch ddc3a5f95e add package.json dependency to make install 2012-04-25 18:39:03 -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 7f38862f9f Use d3_identity instead of Object. 2012-03-16 17:17:32 -07:00
Mike Bostock f80b1cf244 Add selection.datum. Fixes #489. 2012-02-21 10:31:15 -08:00
Mike Bostock f1197ed8b6 Use d3.map for d3_svg_symbols.
This fixes a crash with the symbol type "hasOwnProperty", rather than defaulting
to "circle". This commit also adds new map methods to retrieve the keys, values
and entries. The map class now uses non-enumerable properties (if supported).
2012-02-20 21:30:23 -08:00
Mike Bostock 738b634789 Add d3.map.
This is, essentially, an ES6 shim for a Harmony Map. We will use it instead of
using a bare object, so that we don't need to worry about collision with built-
in properties names (such as "__proto__" and "hasOwnProperty").
2012-02-20 11:23:36 -08:00
Mike Bostock f37fd52100 Add d3.scale.identity. Fixes #483. 2012-02-19 20:52:44 -08:00
Mike Bostock 1fac89e74f Merge branch 'mouse' of https://github.com/jasondavies/d3 into jasondavies-mouse 2012-02-19 17:14:41 -08:00
Jason Davies 9c124a687e Merge branch 'master' into mouse
Conflicts:
	Makefile
	d3.min.js
	d3.v2.js
	examples/zoom/zoom.html
2012-02-19 20:18:07 +00:00
Jason Davies a59ade5f55 Rename to d3.{mouse,touches}. 2012-02-19 20:10:47 +00:00
Mike Bostock 077411a236 Add interval.range, and time.scale.nice.
This commit provides a standard interface for time intervals:

  interval.floor(date)
  interval.ceil(date)
  interval.offset(date, k)
  interval.range(start, stop, step)

All local-time intervals (such as d3.time.day) have a UTC-equivalent interval,
available as interval.utc (such as d3.time.day.utc).

Fixes #463. Note that for the time.scale, an interval function is required to
nice (such as d3.time.day). 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.
2012-02-18 22:56:54 -08:00
Mike Bostock 0e4fc7cdc6 Unify interval definitions via d3_time_utc.
Rather than having two implementations for local time and UTC time, we now have
a single local-time implementation and use d3_time_utc to adapt for UTC.
2012-02-18 20:36:06 -08:00
Mike Bostock 3081dd45ef 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.
2012-02-18 14:04:01 -08:00
Mike Bostock c3516c06a6 Update src/package.js rather than package.json. 2012-02-18 11:51:45 -08:00
Jason Davies 2936a6b1e7 Add d3.svg.{mouse,touches} aliases.
For backwards-compatibility.
2012-02-14 18:45:13 +00:00
Mike Bostock f67e89597d Expand the default custom build. 2012-01-26 11:58:40 -08:00
Jason Davies b426e78dce Rename d3.svg.touches to d3.behavior.touches. 2012-01-09 08:35:57 +00:00
Jason Davies 30e6f51672 Add d3.behavior.mouse: supports both SVG and HTML. 2012-01-09 08:29:30 +00:00
Mike Bostock 4a35d78848 Add selection.order.
It's like selection.sort, except it assumes that the data is already sorted;
the elements are reordered to match the selection.
2011-12-08 17:14:08 -08:00
Mike Bostock 3d6b4cf2fb Add transpose. 2011-11-23 12:44:04 -08:00
Mike Bostock e3f6f33b3d Add d3.transform and d3.interpolateTransform.
This is based on @jasondavies previous work on interpolating 3D matrices,
simplified to only handle 2D transforms, and using SVG to parse transforms.
2011-11-04 16:19:58 -07:00
Mike Bostock 149320f73f Add parallel coordinates example.
This includes a d3.extent convenience method for [d3.min, d3.max], and fixes the
brush component such that the resizers are hidden when the extent is empty.
2011-11-02 16:19:37 -07:00
Mike Bostock a475cd5e5c Query the brush selection.
You can now query the brush for its selection. This commit also includes a new
d3.random.normal for generating random numbers with a normal distribution. This
is useful for jittering points for display.
2011-11-01 13:30:58 -07:00
Mike Bostock e3d59bd581 First cut at a brush component.
The d3.svg.brush component allows one- or two-dimensional rectangular brushing.
A future commit will allow the brushed region to be resized by grabbing an edge,
and also provide some way of reporting the selection (duh)!
2011-10-31 16:59:17 -07:00
Mike Bostock 2f6d2fa07a Merge branch 'deps' of https://github.com/jasondavies/d3 2011-10-19 21:01:39 -04:00
Mike Bostock a62bd527ca Fix a bug in enter selection's empty.
Due to the ordering in which the prototypes are defined, it was still undefined!
Also, the empty method depends on the node method being defined. Added a test.
2011-10-19 20:57:53 -04:00
Jason Davies c724d95f77 Update UglifyJS, JSDOM and Vows.
I ran the tests on the newly minified files too, for good measure, and
everything passed.
2011-10-13 11:35:59 +01:00
Mike Bostock 307016e843 Fix a rounding bug in SI-prefix format.
Also, expose d3.formatPrefix so that it's easier for callers to create a
formatter for a specific prefix (such as using the "G" prefix for all ticks).
2011-10-11 16:46:47 -07:00
Mike Bostock 31cb66f9f1 Add d3.median. 2011-10-10 17:49:53 -07:00
Mike Bostock 9523c4d2d1 Merge branch 'mean' of https://github.com/jasondavies/d3 into mean 2011-10-10 17:41:52 -07:00
Jason Davies da189667c1 Add d3.mean.
Uses Welford's algorithm to avoid overflow.

See #245.
2011-10-07 22:00:44 +01:00
Mike Bostock 05e9a39837 Fix spaces. 2011-10-07 12:22:56 -07:00
Lars Kotthoff f3b8c0ef04 remove duplicate rule and tweak "all" target (mbostock) 2011-10-04 19:34:16 +01:00