Skip to content

Commit

Permalink
Remove autoSkip option (0.5K).
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Feb 23, 2018
1 parent 8e2e7dd commit d697e86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ defaults._set('scale', {
padding: 0,
reverse: false,
display: true,
autoSkip: true,
autoSkipPadding: 0,
// autoSkip: true,
// autoSkipPadding: 0,
labelOffset: 0,
// We pass through arrays to be rendered as multiline labels, we convert Others to strings here.
callback: Ticks.formatters.values,
Expand Down Expand Up @@ -641,6 +641,7 @@ module.exports = function(Chart) {
* Returns a subset of ticks to be plotted to avoid overlapping labels.
* @private
*/
/*
_autoSkip: function(ticks) {
var skipRatio;
var me = this;
Expand Down Expand Up @@ -686,6 +687,7 @@ module.exports = function(Chart) {
}
return result;
},
*/

// Actually draw the scale on the canvas
// @param {rectangle} chartArea : the area of the chart to draw full grid lines on
Expand All @@ -706,7 +708,7 @@ module.exports = function(Chart) {
var isRotated = me.labelRotation !== 0;
var isHorizontal = me.isHorizontal();

var ticks = optionTicks.autoSkip ? me._autoSkip(me.getTicks()) : me.getTicks();
var ticks = me.getTicks();
var tickFontColor = helpers.valueOrDefault(optionTicks.fontColor, globalDefaults.defaultFontColor);
var tickFont = parseFontOptions(optionTicks);
var majorTickFontColor = helpers.valueOrDefault(optionMajorTicks.fontColor, globalDefaults.defaultFontColor);
Expand Down

0 comments on commit d697e86

Please sign in to comment.