block by martgnz f30ea82bcd25b788b368fd839737024e

Format last tick across axis transitions

Full Screen

You can use a third argument on axis.tickFormat to customise the formatting of the last tick.

There’s another example which uses parentNode.nextSibling. Unfortunately, this wasn’t working correctly for me across transitions in a React environment.

index.html