How to show first and last ticks only

Hello,

I was trying to show first tick and last ticks only… right now it’s showing ranged ticks…

is there any idea how to achieve it ?

https://plot.ly/~adamsaparudin/4/pertumbuhan-danamas-stabil/

thank you,
Adam

I’d recommend using xaxis.tickvals and xaxis.ticktext for this task

See https://plot.ly/javascript/axes/#enumerated-ticks-with-tickvals-and-ticktext