Browse Source

Merge pull request #473 from chriskalmar/dynamic-tickvalues

Dynamic tickValues
pull/500/head
Masayuki Tanaka 10 years ago
parent
commit
24c1ad135a
  1. 11
      c3.js

11
c3.js

@ -5558,8 +5558,15 @@
return axis; return axis;
}; };
axis.tickValues = function (x) { axis.tickValues = function (x) {
if (!arguments.length) { return tickValues; } if (typeof x === 'function') {
tickValues = x; tickValues = function () {
return x(scale.domain());
};
}
else {
if (!arguments.length) { return tickValues; }
tickValues = x;
}
return axis; return axis;
}; };
return axis; return axis;

Loading…
Cancel
Save