|
10 | 10 | d3_style_setProperty.call(this, name, value + "", priority);
|
11 | 11 | };
|
12 | 12 | }
|
13 |
| -d3 = {version: "2.9.1"}; // semver |
| 13 | +d3 = {version: "2.9.2"}; // semver |
14 | 14 | function d3_class(ctor, properties) {
|
15 | 15 | try {
|
16 | 16 | for (var key in properties) {
|
@@ -661,7 +661,7 @@ d3.format = function(specifier) {
|
661 | 661 | // Apply the scale, computing it from the value's exponent for si format.
|
662 | 662 | if (scale < 0) {
|
663 | 663 | var prefix = d3.formatPrefix(value, precision);
|
664 |
| - value *= prefix.scale; |
| 664 | + value = prefix.scale(value); |
665 | 665 | suffix = prefix.symbol;
|
666 | 666 | } else {
|
667 | 667 | value *= scale;
|
@@ -730,12 +730,12 @@ d3.formatPrefix = function(value, precision) {
|
730 | 730 | };
|
731 | 731 |
|
732 | 732 | function d3_formatPrefix(d, i) {
|
| 733 | + var k = Math.pow(10, Math.abs(8 - i) * 3); |
733 | 734 | return {
|
734 |
| - scale: Math.pow(10, (8 - i) * 3), |
| 735 | + scale: i > 8 ? function(d) { return d / k; } : function(d) { return d * k; }, |
735 | 736 | symbol: d
|
736 | 737 | };
|
737 | 738 | }
|
738 |
| - |
739 | 739 | /*
|
740 | 740 | * TERMS OF USE - EASING EQUATIONS
|
741 | 741 | *
|
@@ -5564,6 +5564,7 @@ d3.layout.pie = function() {
|
5564 | 5564 | // They are stored in the original data's order.
|
5565 | 5565 | var arcs = [];
|
5566 | 5566 | index.forEach(function(i) {
|
| 5567 | + var d; |
5567 | 5568 | arcs[i] = {
|
5568 | 5569 | data: data[i],
|
5569 | 5570 | value: d = values[i],
|
@@ -5987,7 +5988,8 @@ d3.layout.hierarchy = function() {
|
5987 | 5988 | n,
|
5988 | 5989 | c = node.children = [],
|
5989 | 5990 | v = 0,
|
5990 |
| - j = depth + 1; |
| 5991 | + j = depth + 1, |
| 5992 | + d; |
5991 | 5993 | while (++i < n) {
|
5992 | 5994 | d = recurse(childs[i], j, nodes);
|
5993 | 5995 | d.parent = node;
|
|
0 commit comments