remove last tick in an uneven series

This commit is contained in:
Robert Elliott 2018-10-23 12:20:13 +02:00
parent 29f68a9ce8
commit cf3d3eb0f0
1 changed files with 0 additions and 3 deletions

View File

@ -268,9 +268,6 @@ const getXTicksFromIncrementFactor = ( uniqueDates, incrementFactor ) => {
if ( ticks[ 0 ] !== uniqueDates[ 0 ] ) {
ticks.unshift( uniqueDates[ 0 ] );
}
if ( ticks[ ticks.length - 1 ] !== uniqueDates[ uniqueDates.length - 1 ] ) {
ticks.push( uniqueDates[ uniqueDates.length - 1 ] );
}
return ticks;
};