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

57 Коммитов

Автор SHA1 Сообщение Дата
Michael Bostock bcf37e4a66 Generate Delaunay from Voronoi. 2010-11-07 20:57:25 -08:00
Michael Bostock 841f354568 Tweak clipping code. 2010-11-07 16:56:02 -08:00
Michael Bostock ae5d3fbab9 Oops, invert area for clockwise polygons. 2010-11-07 13:53:47 -08:00
Michael Bostock a502859902 Add d3.geom module.
For now, just Sutherland-Hodgman clipping and area of a convex polygon.
2010-11-07 13:49:59 -08:00
Michael Bostock 57059e32a3 Replace previous optimization with filter.
It's probably best to assume that if the attr is being set, it's changing, and
therefore we shouldn't check the original value. The caller can now use the
filter operator to optimize, if needed.
2010-11-07 08:53:34 -08:00
Michael Bostock cfe47b5ad5 Add mouseover interaction to Voronoi example.
Also, change svg.mouse so that it returns an array [x, y] rather than {x, y};
this makes it easier to convert to a string, e.g., for SVG's transform
attribute. Also, optimize selection.attr so that it checks the attribute value
before setting the attribute. (I thought it would be slower to check, but
surprisingly it's not!)
2010-11-07 00:12:45 -07:00
Michael Bostock 46b80565c9 Almost complete strptime & strftime. 2010-11-05 16:23:53 -07:00
Mike Bostock 8fb4ca44b8 Checkpoint d3.time.format. 2010-11-05 11:05:53 -07:00
Michael Bostock 197ff6bd56 Optimize csv.parse slightly. 2010-11-05 00:36:34 -07:00
Michael Bostock 4e6dc7c5a8 Globals in development version need d3_ prefix. 2010-11-05 00:30:23 -07:00
Michael Bostock cd645ec925 Fix a bug in scale.invert. Add svg.mouse. 2010-11-05 00:11:34 -07:00
Michael Bostock b2a3262338 d3.csv is now a function, like d3.json. 2010-11-04 22:33:43 -07:00
Michael Bostock 4b0c68f8fc Add CSV module.
It's not part of the standard build, but it's easy to pull in if you want to
use it.
2010-11-04 22:27:21 -07:00
Michael Bostock ef084aaf61 Adopt standard parallels per USGS. 2010-11-04 10:43:47 -07:00
Mike Bostock a54574bcf9 Add interactive Albers projection explorer. 2010-11-03 11:19:20 -07:00
Mike Bostock 4c1fd11e74 Delete d3.geo.circle.
We can use the transform attribute, and it's more obvious.
2010-11-02 23:25:09 -07:00
Mike Bostock 2eda4baf36 Add symbol map, composite Albers projection. 2010-11-02 23:06:32 -07:00
Michael Bostock 758b69ba19 State outlines; breakout AK, HI & PR.
I changed the albers API slightly to reduce the number of square brackets.
2010-11-02 16:54:18 -07:00
Michael Bostock a95efee580 Add rudimentary GeoJSON support (with Albers). 2010-11-02 15:27:45 -07:00
Michael Bostock 5c72d2c1c6 Add sort operator. 2010-11-01 23:28:27 -07:00
Michael Bostock 05a255ca9a Break d3 into {core,scale,svg} modules.
Also enable ADVANCED_OPTIMIZATIONS for the Google compiler.
2010-10-30 15:42:11 -07:00
Michael Bostock b7d391f509 Log ticks. 2010-10-29 23:24:53 -07:00
Michael Bostock 12ef81f0e0 Fix a bug in computing min delay. 2010-10-29 09:58:33 -07:00
Michael Bostock 06189539c8 If multiple nodes match key, exit extras. 2010-10-26 22:48:37 -07:00
Michael Bostock b772929db9 Add property, call.
The `property` action allows the setting of arbitrary properties on selected
element, such as the "value" of a form input. The `call` action invokes the
specified function, being passed the current selection (`this`) and optional
additional arguments. This makes it easier to have functions which define sets
of actions, and then apply those actions to any number of selections, similar
to mixin inheritance.
2010-10-26 15:32:41 -07:00
Michael Bostock d66522bb3d If the format type is "d", only accept integers. 2010-10-25 16:03:37 -07:00
Michael Bostock 84e97371ba Add basic Python-inspired number format. 2010-10-25 00:12:44 -07:00
Michael Bostock 6739d05a05 Fold src/join into src/selection. 2010-10-24 17:09:32 -07:00
Michael Bostock d16d06ef36 First pass at some shape utilities. 2010-10-24 17:05:59 -07:00
Michael Bostock a0f2a670b2 Add categorial color palettes. 2010-10-24 16:15:43 -07:00
Michael Bostock 1901673b06 Fix a bug with concurrent intervals. 2010-10-24 16:03:35 -07:00
Michael Bostock e25acce124 Consolidate concurrent setIntervals. 2010-10-24 15:27:04 -07:00
Michael Bostock 99d1840275 Fix propagation of parentNode & parentData. 2010-10-24 14:03:12 -07:00
Michael Bostock 27dbb5a0fa Custom easing. Public d3.dispatch. 2010-10-24 12:40:26 -07:00
Michael Bostock 18a6e2941a Restore previous enter behavior.
It's a lot more predictable if we always use selectAll to determine the parent
node for a given group, rather than trying to infer parent nodes per node
during select.
2010-10-24 12:13:15 -07:00
Michael Bostock 7897cdddd0 Better tracking of enter parents. 2010-10-24 11:43:32 -07:00
Michael Bostock b979c84b2e First-getters for attr, style, text, html. 2010-10-24 11:10:51 -07:00
Michael Bostock 9a28acdc62 Add "key" to join attributes. Event support. 2010-10-24 10:56:29 -07:00
Michael Bostock b6abd7dfdd Allow custom interpolators. 2010-10-24 10:39:34 -07:00
Michael Bostock 6b05816d79 Fix bug in style transition. 2010-10-24 09:48:43 -07:00
Michael Bostock 5705107036 Fix a bug with redundant interpolators. 2010-10-23 20:46:17 -07:00
Michael Bostock 3cfeb7c664 Checkpoint immediate-mode implementation. 2010-10-23 20:32:16 -07:00
Michael Bostock 55e13c778d Minor cleanup to ticks & tickFormat. 2010-10-22 16:06:59 -07:00
Michael Bostock 5e381ba73e Export a tickFormat function.
The tick format function doesn't have to be used with ticks, though. It's also
for convenient for determining an appropriate precision for any value label.
2010-10-22 13:51:36 -07:00
Michael Bostock d7bc33eafd First pass at ticks for linear scale. 2010-10-22 12:55:50 -07:00
Michael Bostock 936963e357 Initialize tweens immediately.
Previously, the tweens would not be initialized until the first tick, after a
minimum delay. It's more predictable if we initialize them during the initial
apply, especially if the tweens depend on external state (such as scales) that
may change after the transition has started.
2010-10-22 12:16:43 -07:00
Michael Bostock aab852b19a Temporary fix for select(404).selectAll().
If the select doesn't find any results, `o.node` is null, so we shouldn't run
any normal actions on it. But we still want to run the data action on it (to
generate the enter selection), so the fix is a bit more complicated than this.
2010-10-21 13:09:39 -07:00
Michael Bostock a5089b8918 Add `bind` action. 2010-10-21 12:53:56 -07:00
Michael Bostock 78bca67502 Add ordinal scale, range. 2010-10-20 15:22:22 -07:00
Michael Bostock 92d15a4472 First pass at scale functions.
This includes only the quantitative scale functions, which is primarily the
linear scale. Also included are `log` and `pow` scales, which are simple
transforms of linear scales. All the scale functions use the existing
interpolator logic, so you can specify an output range of numbers, colors,
fonts, paths... pretty much anything.
2010-10-20 11:07:42 -07:00