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

393 Коммитов

Автор SHA1 Сообщение Дата
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
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
Jason Davies aa3e38e398 Fix and add tests for transition.filter.
Thanks, @mbostock!
2012-07-25 19:36:21 +01:00
Jason Davies 9b3e780006 Further optimisation of d3.layout.pack.
Also avoids floating point errors without clamping, hopefully.
2012-07-25 13:46:20 +01:00
Jason Davies e8f5d860e2 Fix #720: d3.time.dayOfYear floating-point error. 2012-07-23 18:34:39 +01:00
Mike Bostock 7442d95798 Merge branch 'date-2d' of git://github.com/jasondavies/d3 into fix-time-full-year 2012-07-17 14:00:08 -07:00
Mike Bostock 83b5f45997 Fix #711 for years in the first century.
Alas, the JavaScript Date constructor is Y2K-centric.
2012-07-17 13:45:34 -07:00
Jason Davies 42b9253f96 Convert 2-digit years according to POSIX.
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.
2012-07-10 16:40:19 +01:00
Mike Bostock 306a3e35cb Merge branch 'fix-interpolate-hsl' into 2.9.6 2012-07-02 18:05:51 -07:00
Mike Bostock d0b0af50b6 Fix more bugs in circle clipping.
It was returning 0 rather than null when a feature was completely clipped, and
it was crashing when a closed polygon was completely clipped.
2012-07-02 17:42:23 -07:00
Mike Bostock 54b0dcba00 Optimize greatArc and circle.
When clipping, the origin of the great arc doesn’t change, so we can cache a
number of intermediate values and accelerate the clipping computation.
2012-07-02 16:58:54 -07:00
Jason Davies 8710e5bbd1 Add some unit tests for d3.geo.circle. 2012-07-02 17:02:52 +01:00
Mike Bostock 53fa8f1a4a Custom d3.svg.{area,line} interpolators.
You can now specify a function as the interpolate property of a line or area,
allowing you to define custom interpolation behavior.
2012-06-30 10:35:58 -07:00
Mike Bostock fd6c591b76 Add support for outer padding on rangeBands.
Sometimes you want additional padding between the outer bands and the range
extent. Now you can.
2012-06-28 20:41:33 -07:00
Mike Bostock ae1fed7f4f Use shortest path for hue in d3.interpolateHsl.
Fixes #688.
2012-06-28 17:43:26 -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
Mike Bostock 49d3c6fc39 Merge branch 'transition-test' of https://github.com/jasondavies/d3 into 2.9.4 2012-06-19 08:50:37 -07:00
Mike Bostock 0d31c17360 Merge branch 'fix-log-ticks' into 2.9.3 2012-06-14 09:33:49 -07:00
Mike Bostock 0f12c1b8a8 Always display powers-of-ten tick labels.
Previously, the log scale's tick format would hide all labels when there was not
enough room to display the requested number of ticks; now it at least displays
the power-of-ten labels. Fixes #655.
2012-06-14 09:33:08 -07:00
Mike Bostock 83c6f20dd9 Merge branch 'master' of https://github.com/bdon/d3 into 2.9.3 2012-06-14 09:29:39 -07:00