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

296 Коммитов

Автор SHA1 Сообщение Дата
Michael Bostock 373ddee706 Add nest, keys, values & entries operators. 2011-01-08 15:18:38 -08:00
Michael Bostock bdcb648849 Turn off the compiler's "advanced" optimizations.
The renaming of attributes is totally not worth the hassle of maintaining an
externs file (or using the awkward `foo["bar"]` syntax). The file size
reduction from the advanced optimizations was negligible, besides!
2011-01-05 11:35:39 -08:00
Michael Bostock 19d478f3e0 Add quantile scale. 2011-01-03 10:30:36 -08:00
Jeffrey Heer 5067f0a35d Move cardinal splines to svg/line.js 2010-12-15 22:06:24 -08:00
Jeffrey Heer 633a931f5b Add cardinal splines and clustered graph example 2010-12-15 09:32:29 -08:00
Jeffrey Heer 70cb5359c9 Merge branch 'master' of git://github.com/mbostock/d3 2010-12-15 08:46:23 -08:00
Mike Bostock 2bdf55ce9c Better XHR utilities.
Two new XHR utilities are included in this commit for fetching XML and HTML
data. The latter can be used to scrape data from websites that don't support a
more suitable API (such as JSON or XML), conveniently using the W3C DOM API
including selectors.

Parsing HTML is surprisingly tricky, as browser support for it is poorly
standardized. It's possible to embed the HTML in the current document or an
iframe, but that runs embedded scripts and loads external resources (images,
stylesheets), which is a security hazard!

Our approach uses the DOM Level 2 Range API, and the nonstandard
createContextualFragment method, which is supported by major browsers.
Strangely, WebKit (Chrome & Safari) can only access the body of the loaded
HTML document, whereas Firefox parses the whole document.
2010-12-09 15:04:24 -08:00
Jeffrey Heer ecf796c04a Added contour by marching squares 2010-12-06 20:27:25 -08:00
Michael Bostock 6d97ab2218 Add `classed` operator for toggling CSS classes. 2010-11-30 13:40:05 -08:00
Mike Bostock 6307364a45 Add layout module, with layout.chord class. 2010-11-28 13:15:07 -08:00
Mike Bostock 5ae51b2538 Simplify svg.chord API.
We now use the same property accessors (startAngle, endAngle and radius) for
two source and target objects. Note that you don't have to structure your data
hierarchically; you can define a source and target accessor that restructures
the data on the fly.
2010-11-27 14:13:02 -08:00
Michael Bostock c021172fe8 Add d3.{split,merge}.
These are symmetric operators for splitting and merging (blending) arrays. The
split operator is useful for line and area charts where some of the data
points may be undefined; split the data into subarrays and render each as its
own line or area. This commit also fixes a bug in d3.svg.line when the data
array is empty.
2010-11-27 10:35:11 -08:00
Mike Bostock 163a37e7cd Add svg.chord class. 2010-11-27 01:07:00 -08:00
Jeffrey Heer bbe029fa7f Added convex hull at d3.geom.hull 2010-11-22 16:21:46 -08:00
Michael Bostock 138fd92978 Add Mercator projection. 2010-11-09 14:45:31 -08:00
Michael Bostock 156ff68f16 Move Voronoi & Delaunay code into geom module. 2010-11-07 21:09:59 -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 46b80565c9 Almost complete strptime & strftime. 2010-11-05 16:23:53 -07:00
Michael Bostock 6494412aee Don't include geo in the default build. 2010-11-05 00:25:24 -07:00
Michael Bostock cd645ec925 Fix a bug in scale.invert. Add svg.mouse. 2010-11-05 00:11:34 -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
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 a95efee580 Add rudimentary GeoJSON support (with Albers). 2010-11-02 15:27:45 -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 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 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 e25acce124 Consolidate concurrent setIntervals. 2010-10-24 15:27:04 -07:00
Michael Bostock 27dbb5a0fa Custom easing. Public d3.dispatch. 2010-10-24 12:40:26 -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 3cfeb7c664 Checkpoint immediate-mode implementation. 2010-10-23 20:32:16 -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
Michael Bostock 6464020abb Update google-compiler to 20100917. 2010-10-14 10:23:15 -07:00
Michael Bostock 7e0e19106e Remove values/entries/keys.
These data-processing methods are useful, but they should live in a separate library.
2010-10-14 10:21:07 -07:00
Michael Bostock 917442a1a2 Add HSL conversion utility. 2010-10-06 15:20:38 -07:00
Michael Bostock a16adb1a39 Add d3.{entries,keys,values}.
Also rename calendar/dow example to calendar/dji.
2010-10-05 11:57:27 -07:00
Mike Bostock 5d7536385d Rename select_all -> selectAll. 2010-10-02 11:38:50 -07:00
Mike Bostock 018b79577a Rename add -> append. 2010-10-02 11:00:31 -07:00
Mike Bostock 6f3a7e7e76 Checkpoint source. 2010-09-28 11:26:55 -07:00
Mike Bostock b2aa3c7355 Initial commit. 2010-09-27 10:20:44 -07:00