Skip to content

Commit

Permalink
Fix sampleSize option (#6586)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored and etimberg committed Oct 23, 2019
1 parent c6c991d commit 3cb308d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.scale.js
Expand Up @@ -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.
Expand Down

0 comments on commit 3cb308d

Please sign in to comment.