Liubomyr Mykhalchenko
Liubomyr Mykhalchenko

Reputation: 268

How to prevent the last tick from rendering? Using 'recharts' library

I have a chart with reversed yAxis. How do I prevent last tick (in this case it's number 8) from rendering? Here is a jsfiddle

Upvotes: 0

Views: 1393

Answers (1)

Adam Pearce
Adam Pearce

Reputation: 9293

You can hide it with a bit of css:

.recharts-y-axis .recharts-cartesian-axis-tick:last-child { display: none; }

Upvotes: 1

Related Questions