Skip to content

Persistent modal bar #319

@tom-christie

Description

@tom-christie

If I use the basic example:

library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
p <- ggplot(data = d, aes(x = carat, y = price)) + 
    geom_point(aes(text = paste("Clarity:", clarity))) +
    geom_smooth(aes(colour = cut, fill = cut)) + facet_wrap(~ cut)
(gg <- ggplotly(p))

and then configure:

config(gg,showLink=F, sendData=F, displaylogo=F, displayModeBar = F)

the modal bar doesn't appear. However, if you click and drag to zoom in, the modal bar reappears (WITH the link to "Save and Edit Plot in Cloud"). Presumably this is undesired behavior...it certainly is undesired for me, as I am trying keep people from uploading the private data I'm hosting up to Plotly's cloud with the click of a button.

Edit: interestingly, the modal disappears if I interact with the plot again, and then reappears if I interact a third time, and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions