Skip to content

ggplotly boxplot tooltip shows transformed value instead of original value #1603

Open
@ghost

Description

The ggplotly boxplot hover values not supporting ggplot scale transformation. They incorrectly apply the transormation to the hover values instead of leaving them as is. This is related to the closed issue (#804) and open issue (#1581).

library(tidyverse)
library(plotly)

plot <- ggplot(diamonds, aes(cut, price)) +
  geom_boxplot() +
  scale_y_continuous(trans = "sqrt", limits = c(0, 25000))

ggplotly(plot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions