From: Jerry Chang Date: Sun, 19 Feb 2017 02:34:08 +0000 (-0800) Subject: Fixed built-in auto skip caused by previous commit (#3904) X-Git-Tag: v2.6.0~2^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05e63824b3ddd97382090a1ed2f7ec27433821dc;p=thirdparty%2FChart.js.git Fixed built-in auto skip caused by previous commit (#3904) --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index b7d043547..4584f0427 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -521,12 +521,6 @@ module.exports = function(Chart) { if (isHorizontal) { skipRatio = false; - // Only calculate the skip ratio with the half width of longestRotateLabel if we got an actual rotation - // See #2584 - if (isRotated) { - longestRotatedLabel /= 2; - } - if ((longestRotatedLabel + optionTicks.autoSkipPadding) * me.ticks.length > (me.width - (me.paddingLeft + me.paddingRight))) { skipRatio = 1 + Math.floor(((longestRotatedLabel + optionTicks.autoSkipPadding) * me.ticks.length) / (me.width - (me.paddingLeft + me.paddingRight))); }