From b0ce2d665fc89b3d797c989c54c929fbc4d9b8cd Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 22 Oct 2019 17:59:22 -0700 Subject: [PATCH] Fix sampleSize option (#6586) --- src/core/core.scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 29134180cae..b4553a86afd 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -448,7 +448,7 @@ var Scale = Element.extend({ // Compute tick rotation and fit using a sampled subset of labels // We generally don't need to compute the size of every single label for determining scale size - samplingEnabled = sampleSize > ticks.length; + samplingEnabled = sampleSize < ticks.length; labels = me._convertTicksToLabels(samplingEnabled ? sample(ticks, sampleSize) : ticks); // _configure is called twice, once here, once from core.controller.updateLayout.