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

18 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 5ef9dcd38a Add d3.scale.log base. Fixes #928.
Still need to implement sensible behavior for log.ticks without base 10, but I
haven't decided what would be appropriate yet.
2013-03-05 09:26:46 -08:00
Mike Bostock a3bb93a749 Fix vows clobbering our custom asserts. 2013-03-05 09:01:18 -08: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 ae1fed7f4f Use shortest path for hue in d3.interpolateHsl.
Fixes #688.
2012-06-28 17:43:26 -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 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 149d174029 Fix NaN in clamped log scale inversion. 2012-01-01 12:15:22 -08:00
Mike Bostock a752b9627f Fix #394. 2011-11-29 21:36:51 -08:00
Mike Bostock 3de298bc37 Fixed precision for the default log tick format.
Also add @jmarca's test case.
2011-11-10 12:35:09 -08:00
Mike Bostock da47ae88bd Remove spurious rounding. 2011-11-10 12:31:54 -08:00
Jason Davies d2943a0724 Better handling of empty domains for nice scales. 2011-10-11 09:12:56 +01:00
Jason Davies cc0ae766b7 Make toString return #RRGGBB for all colours.
This breaks a test case that ensures d3.hsl(x) == d3.hsl(d3.hsl(x)).

Fixes #333.
2011-10-07 17:58:58 +01:00
Mike Bostock 7895afbda5 Better log ticks.
This adds support for filtering the log ticks, such that fewer ticks can be
generated to fit in a small space. This can be used in conjunction with a
custom tick format as well. This commit also changes the default log tick format
to be exponential rather than precision, for consistency.
2011-09-21 15:32:19 -07:00
Mike Bostock d2b152ce7f Fix a bug in ordinal.copy. More tests. 2011-08-18 14:59:55 -07:00
Mike Bostock 7c25304ffe Add tests for nicing poly domains. 2011-08-15 15:30:55 -07:00
Mike Bostock 9684389ea0 Add test for scale.log. 2011-08-15 15:26:10 -07:00