Hyperlink Y Axis Tick Text

Hi,

I want to put a hyperlink on the Y axis tick text. I have tried replacing the relevant vector to include text, however this moves the Y axis label off the screen, the text appears hyperlinked (blue and underlined), but clicking here doesn’t lead to any result.

Any advice for making this happen?

Hey @parsa

Try something like this:

plot_ly(
   x=1,
   y=1
) %>% 
layout(
   yaxis = list(
      tickmode = "array", 
      tickvals = "1", 
      ticktext = "<a href='https://google.com'>A</a>"
   )
)

Hi @bcd

Perhaps you could take a look at the following Possible hyperlink bug?
I think there’s a reproducible bug associated with this approach.