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

25 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 0aed1e403d Merge branch 'customticks' of https://github.com/larskotthoff/d3 into v2.8.0 2012-02-21 22:42:41 -08:00
Mike Bostock d69cbbdaa7 Adopt d3.map for d3.svg.line and d3.svg.area. 2012-02-21 08:55:03 -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 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
Lars Kotthoff d043d1126a setting ticks()/tickValues() sets the other one to null (mbostock) 2012-01-19 20:45:19 +00:00
Lars Kotthoff 8c2204c680 separate variable and accessor method for ticks (mbostock) 2012-01-19 20:43:57 +00:00
Lars Kotthoff 29e39cf60a test for tick positions given as list 2012-01-19 20:40:43 +00:00
Jason Davies 1a98398be0 Fix d3.svg.axis path for explicit ordinal range. 2011-12-14 09:15:25 +00:00
Mike Bostock 552622da17 Ordinal scales for axes. 2011-11-23 12:05:52 -08:00
Mike Bostock d2ba3b2d2c Minor fixes for the axis component.
You can now change the orientation and the axis will redraw correctly. When an
axis is applied by a transition, the subtransitions will properly inherit the
transition id, allowing transitions on reselected elements to continue.
2011-10-10 16:45:08 -07:00
Mike Bostock 4d1de5e175 Fix a bug in area step interpolation.
When computing the reversed baseline, we need to switch between step-before and
step-after, since the points are in reverse order. Otherwise, we're effectively
filling the gap between step-before and step-after.
2011-10-07 11:32:06 -07:00
Jason Davies 3d064526d4 Reverse subpath direction for annulus. 2011-08-31 12:48:01 +01:00
Mike Bostock 0f4152e042 Fix the domain path for polylinear scales. 2011-08-24 16:20:59 -07:00
Mike Bostock ba2a68bb94 Allow tickFormat to be specified as a constant.
This was basically supported already, but there was a slight bug in the truthy
check for tickFormat. Now we check for null rather than falsiness.
2011-08-24 16:11:28 -07:00
Mike Bostock 95805adc9b Promote the axis component to the svg module.
I'm including the axis component in the core build because it should be useful
in many different visualization types, similar to the other svg components. The
chart module contains a hodgepodge of more obscure visualization types, and
there's no reason to pull those in for more common visualizations. Perhaps most
importantly, the axis component isn't a chart type!
2011-08-23 12:02:12 -07:00
Mike Bostock f12352c6f4 Add test for svg.area.radial.
Also, better formatting for failure message in assert.pathEqual.
2011-08-17 16:07:28 -07:00
Mike Bostock ff083fd068 Better tests for svg.area and svg.line.radial. 2011-08-17 14:58:49 -07:00
Mike Bostock b5a857fda9 Add test for svg.line.radial. 2011-08-17 14:24:54 -07:00
Mike Bostock 8f78f5ec39 Better tests for svg.line. 2011-08-17 14:09:34 -07:00
Mike Bostock 559394bdb9 Better tests for svg.arc.
This also fixes a bug when start and end angle are inverted.
2011-08-17 13:27:55 -07:00
Mike Bostock b7e1413295 Add test for svg.symbol. 2011-08-15 13:07:28 -07:00
Mike Bostock 5e9bead57f Add test for svg.line. 2011-08-15 12:55:42 -07:00
Mike Bostock aae78283b1 Add test for svg.area. 2011-08-15 12:50:20 -07:00
Mike Bostock aa5ac0342e Add test for svg.arc. 2011-08-15 12:16:14 -07:00
Mike Bostock e37031a38c Organize tests into modules. 2011-07-18 18:08:06 -07:00