We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the prepareYAxis function, the yAxis is hardcoded with the default number of ticks so the number can never be changed.
My solution:
Add new variable: var _yTicks = DEFAULT_Y_AXIS_TICKS;
Modify prepareYAxis function: _yAxis = _yAxis.scale(_y).orient("left").ticks(_yTicks);
Add new function: chart.yTicks = function () { if (!arguments.length) return _yTicks; _yTicks = _; return _chart; };
Thanks!
The text was updated successfully, but these errors were encountered:
417ed5b
No branches or pull requests
In the prepareYAxis function, the yAxis is hardcoded with the default number of ticks so the number can never be changed.
My solution:
Add new variable:
var _yTicks = DEFAULT_Y_AXIS_TICKS;
Modify prepareYAxis function:
_yAxis = _yAxis.scale(_y).orient("left").ticks(_yTicks);
Add new function:
chart.yTicks = function () {
if (!arguments.length) return _yTicks;
_yTicks = _;
return _chart;
};
Thanks!
The text was updated successfully, but these errors were encountered: