mirror of
https://github.com/VisActor/VChart
synced 2024-11-21 23:51:05 +00:00
fix: fix linearDiscreteTicks()
when labelLastVisible
is true
This commit is contained in:
parent
c90ea27034
commit
c7007b2c56
@ -127,7 +127,8 @@ export const linearDiscreteTicks = (scale: BandScale, op: ICartesianTickDataOpt)
|
||||
if (
|
||||
scaleTicks.length &&
|
||||
scaleTicks[scaleTicks.length - 1] !== domain[domain.length - 1] &&
|
||||
scale.scale(scaleTicks[scaleTicks.length - 1]) - scale.scale(domain[domain.length - 1]) < maxBounds[2]
|
||||
Math.abs(scale.scale(scaleTicks[scaleTicks.length - 1]) - scale.scale(domain[domain.length - 1])) <
|
||||
maxBounds[2]
|
||||
) {
|
||||
scaleTicks = scaleTicks.slice(0, -1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user