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

12 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock ba170a5054 Merge branch 'locale' into 3.4 2014-01-09 16:43:32 -08:00
Mike Bostock 99ff885b96 Support AMD/RequireJS.
When d3.js is loaded, it now prefers the AMD define function or module.exports
if available; the global `d3` is only set if neither of these are available. A
side benefit of this change is that browserify, bower and component can now load
the D3 library directly rather than needing a custom definition.
2014-01-09 13:54:49 -08:00
Mike Bostock da785c66ee Allow currency prefix and suffix.
This commit allows the currency symbol to appear either at the beginning or end
(or both, but that should be rare).
2014-01-09 10:50:11 -08:00
Mike Bostock 41bfffe63e Add --ascii to uglifyjs. Related #1195. 2013-08-12 08:17:45 -07:00
Mike Bostock 2e17b5d6d3 Fix #1383 - Do not ignore d3.min.js for bower. 2013-07-10 21:48:37 -07:00
Mike Bostock 68809d3dd3 Add currency support to d3.format. Fixes #777.
You can now prefix the locale’s currency symbol. For example:

  d3.format("+$,.2f")(-2.5e5) // -$250,000.00

This implementation is limited in that it does not support currencies where the
symbol should appear after the value (e.g., "250,000.00 €" as in fr_FR). And
d3.format currently only supports a single locale. But it’s a start.
2013-07-03 10:09:54 -07:00
Mike Bostock 580577badb Hard-code the list of bower ignores. 2013-07-01 11:06:43 -07:00
Mike Bostock e31c0fb290 Add make rule for component.json. 2013-06-29 09:24:41 -07:00
Jared Forsyth 6baa166f01 adding bin/component 2013-06-29 00:13:44 -06:00
Mike Bostock 2236488f22 Am I bowering rite? Fixes #1251 #1338. 2013-06-27 11:32:08 -07:00
Jason Davies 29252d53a1 Custom UglifyJS script to warn about leaking globals. 2013-05-24 20:37:58 +01:00
Jason Davies 22b744b7e6 Tweak version generation.
Instead of relying on sed to replace a VERSION token, we generate
src/start.js, which defines the internal `d3` variable with the current
version derived from package.json.

In addition, all file generators (component, locale, start) have been
moved to bin/.
2013-05-07 19:47:44 +01:00