Skip to content

Commit

Permalink
Add axis to callback
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 8, 2017
1 parent 1eeffa3 commit 286ce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.scale.js
Expand Up @@ -298,7 +298,7 @@ module.exports = function(Chart) {
var me = this;
// Convert ticks to strings
var tickOpts = me.options.ticks;
me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback);
me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);
},
afterTickToLabelConversion: function() {
helpers.callback(this.options.afterTickToLabelConversion, [this]);
Expand Down

0 comments on commit 286ce2d

Please sign in to comment.