remove last tick in an uneven series
This commit is contained in:
parent
29f68a9ce8
commit
cf3d3eb0f0
|
@ -268,9 +268,6 @@ const getXTicksFromIncrementFactor = ( uniqueDates, incrementFactor ) => {
|
||||||
if ( ticks[ 0 ] !== uniqueDates[ 0 ] ) {
|
if ( ticks[ 0 ] !== uniqueDates[ 0 ] ) {
|
||||||
ticks.unshift( uniqueDates[ 0 ] );
|
ticks.unshift( uniqueDates[ 0 ] );
|
||||||
}
|
}
|
||||||
if ( ticks[ ticks.length - 1 ] !== uniqueDates[ uniqueDates.length - 1 ] ) {
|
|
||||||
ticks.push( uniqueDates[ uniqueDates.length - 1 ] );
|
|
||||||
}
|
|
||||||
|
|
||||||
return ticks;
|
return ticks;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue