mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix tick spacing calculation (#6761)
This commit is contained in:
parent
eb0751c6d0
commit
542f598e6d
@ -242,7 +242,7 @@ function getEvenSpacing(arr) {
|
||||
|
||||
function calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {
|
||||
var evenMajorSpacing = getEvenSpacing(majorIndices);
|
||||
var spacing = (ticks.length - 1) / ticksLimit;
|
||||
var spacing = ticks.length / ticksLimit;
|
||||
var factors, factor, i, ilen;
|
||||
|
||||
// If the major ticks are evenly spaced apart, place the minor ticks
|
||||
|
Loading…
Reference in New Issue
Block a user