Hello,
So I got the hovertemplate to work but it shows the name of the severity rather than the count that was loaded into the barchart. Where am I going wrong? I want the value to be displayed when hovering over the bar for the users...
```{r}
p<- plot_ly(data=tenable.df, x=tenable.df$severity.name, y=tenable.df$severity.name, name = "Severity Level Summary", type = "bar", hovertemplate = paste('%{x}', '<br>Severity: %{y}<br>')) %>%
layout(title = "Current Severity Ratings",
xaxis=list(title="Severity Rating", showgrid=TRUE),
yaxis=list(title="Count of Severity", showgrid=TRUE))
p
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Short Version
You can share your data in a forum friendly way by passing the data to share to the dput() function.
If your data is too large you can use standard methods to reduce it before sending to dput().
When you come to share the dput() text that represents your data, please be sure to format your post with triple backticks on the line before your code begins to format it appropriately.