scales[scale.id] = scale;
}
- scale.mergeTicksOptions();
-
// TODO(SB): I think we should be able to remove this custom case (options.scale)
// and consider it as a regular scale part of the "scales"" map only! This would
// make the logic easier and remove some useless? custom code.
// Any function defined here is inherited by all scale types.
// Any function can be extended by the scale type
- /**
- * Provided for backward compatibility, not available anymore
- * @function Chart.Scale.mergeTicksOptions
- * @deprecated since version 2.8.0
- * @todo remove at version 3
- */
- mergeTicksOptions: function() {
- // noop
- },
-
beforeUpdate: function() {
helpers.callback(this.options.beforeUpdate, [this]);
},
};
module.exports = Scale.extend({
- initialize: function() {
- this.mergeTicksOptions();
- Scale.prototype.initialize.call(this);
- },
update: function() {
var me = this;