app/assets/javascripts/d3.js in d3_rails-3.5.10 vs app/assets/javascripts/d3.js in d3_rails-3.5.11
- old
+ new
@@ -1,8 +1,8 @@
!function() {
var d3 = {
- version: "3.5.10"
+ version: "3.5.11"
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
var d3_document = this.document;
@@ -6155,11 +6155,11 @@
}
groups[di] = {
index: di,
startAngle: x0,
endAngle: x,
- value: (x - x0) / k
+ value: groupSums[di]
};
x += padding;
}
i = -1;
while (++i < n) {
@@ -7665,13 +7665,14 @@
return ticks;
};
scale.tickFormat = function(n, format) {
if (!arguments.length) return d3_scale_logFormat;
if (arguments.length < 2) format = d3_scale_logFormat; else if (typeof format !== "function") format = d3.format(format);
- var k = Math.max(.1, n / scale.ticks().length), f = positive ? (e = 1e-12, Math.ceil) : (e = -1e-12,
- Math.floor), e;
+ var k = Math.max(1, base * n / scale.ticks().length);
return function(d) {
- return d / pow(f(log(d) + e)) <= k ? format(d) : "";
+ var i = d / pow(Math.round(log(d)));
+ if (i * base < base - .5) i *= base;
+ return i <= k ? format(d) : "";
};
};
scale.copy = function() {
return d3_scale_log(linear.copy(), base, positive, domain);
};
\ No newline at end of file