We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ggplotly
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When drawing a geom_bar plot with negative values, a tooltip will display them as positive instead.
geom_bar
library(ggplot2) library(plotly) dataset <- data.frame(x = 1:2, y = 1:2 - 3, z = 1:2 - 3) # z == y p1 <- ggplot(dataset, aes(x, y, z = z)) + geom_bar(stat = "identity") ggplotly(p1, tooltip = c("y", "z"))
Even though y and z contain the same negative values, only z is displayed as negative in the tooltip:
y
z
This may be related to #560, #616 or #874. It was reported on StackOverflow here: https://stackoverflow.com/q/63862157/2554330
The text was updated successfully, but these errors were encountered:
The issue is still unresolved, but adding geom_point will at least show the correct value in tooltip :
geom_point
library(ggplot2) library(plotly) dataset <- data.frame(x = 1:2, y = 1:2 - 3, z = 1:2 - 3) # z == y p1 <- ggplot(dataset, aes(x, y, z = z)) + geom_bar(stat = "identity") + geom_point(size=4) #Add geom_point ggplotly(p1, tooltip = c("y", "z"))
Sorry, something went wrong.
No branches or pull requests
When drawing a
geom_bar
plot with negative values, a tooltip will display them as positive instead.Even though
y
andz
contain the same negative values, onlyz
is displayed as negative in the tooltip:This may be related to #560, #616 or #874. It was reported on StackOverflow here: https://stackoverflow.com/q/63862157/2554330
The text was updated successfully, but these errors were encountered: