mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Fix sampleSize option (#6586)
This commit is contained in:
parent
c6c991d0f0
commit
3cb308d16c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user