There was an error while loading. Please reload this page.
1 parent be85713 commit c8a2c9dCopy full SHA for c8a2c9d
4 files changed
d3.js
@@ -1763,6 +1763,10 @@ d3.scale.pow = function() {
1763
return linear(powp(x));
1764
}
1765
1766
+ function tick() {
1767
+ return d3.scale.linear().domain(scale.domain());
1768
+ }
1769
+
1770
scale.invert = function(x) {
1771
return powb(linear.invert(x));
1772
};
@@ -1779,6 +1783,15 @@ d3.scale.pow = function() {
1779
1783
return arguments.length ? scale : x;
1780
1784
1781
1785
1786
+ // TODO better tick formatting...
1787
+ scale.ticks = function(m) {
1788
+ return tick().ticks(m);
1789
+ };
1790
1791
+ scale.tickFormat = function(m) {
1792
+ return tick().tickFormat(m);
1793
1794
1782
1795
scale.exponent = function(x) {
1796
if (!arguments.length) return p;
1797
var domain = scale.domain();
0 commit comments