How to have fixed size in funnel chart but dynamic hover text in R

I am trying to have a funnel chart using R. The issue is numbers are skewed and that wont have a uniform representation . However we want to show the flow. So how can I make a funnel chart in R where the size of the funnel is fixed but the text is dynamic and coming from a dataframe column.

 p <- plot_ly(
      type = "funnelarea",
      values = c(5, 4, 3, 2, 1),
      text = c("The 1st","The 2nd", "The 3rd", "The 4th", "The 5th"),
      marker = list(colors = c("deepskyblue", "lightsalmon", "tan", "teal", "silver"),
                    line = list(color = c("wheat", "wheat", "blue", "wheat", "wheat"), width = c(0, 1, 5, 0, 4))),
      textfont = list(family = "Old Standard TT, serif", size = 13, color = "black"),
      opacity = 0.65)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.