Skip to content
New issue

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

Warning message when creating a grouped boxplot #2376

Open
dgreer1 opened this issue Aug 10, 2024 · 2 comments
Open

Warning message when creating a grouped boxplot #2376

dgreer1 opened this issue Aug 10, 2024 · 2 comments

Comments

@dgreer1
Copy link

dgreer1 commented Aug 10, 2024

When I run the example code for a grouped box plot on the plotly documentation I get a the following warning:

Warning: 'layout' objects don't have these attributes: 'boxmode'
Valid attributes include:
'_deprecated', 'activeshape', 'annotations', 'autosize', 'autotypenumbers', 'calendar', 'clickmode', 'coloraxis', 'colorscale', 'colorway', 'computed', 'datarevision', 'dragmode', 'editrevision', 'editType', 'font', 'geo', 'grid', 'height', 'hidesources', 'hoverdistance', 'hoverlabel', 'hovermode', 'images', 'legend', 'mapbox', 'margin', 'meta', 'metasrc', 'modebar', 'newshape', 'paper_bgcolor', 'plot_bgcolor', 'polar', 'scene', 'selectdirection', 'selectionrevision', 'separators', 'shapes', 'showlegend', 'sliders', 'smith', 'spikedistance', 'template', 'ternary', 'title', 'transition', 'uirevision', 'uniformtext', 'updatemenus', 'width', 'xaxis', 'yaxis', 'barmode', 'bargap', 'mapType'

The code is on the documentation website but reproduced here as a reprex:

fig <- plot_ly(ggplot2::diamonds, x = ~cut, y = ~price, color = ~clarity, type = "box")
fig <- fig %>% layout(boxmode = "group")

fig

I can see that this issue was discussed some years ago but despite the issue being closed it still seems to be a problem.

@arenaux-xlra
Copy link

We have exactly the same problem and it is polluting all our Shiny logs.
A fix or a workaround would be really beneficial please!

@oliver-gray
Copy link

It's incredibly frustrating for us too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants