question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updatemenus: the update set by {'yaxis2': {'visible': false}} is ineffective

See original GitHub issue

In a fig with two buttons https://plot.ly/~empet/15485, the updatemenus is defined such that when the first button is clicked to be displayed three traces. Two of them are referenced to the xaxis and a secondary yaxis. Clicking the second button only the trace referenced to xaxis, yaxis is set to be displayed, and this setting works, but any attempt to make the 'yaxis2' invisible failed. The arg { "yaxis2": { "visible": false } } is innefective. However, it works when it is set directly via layout update. Here: https://gist.github.com/empet/9367eebc544b94937f026367c808ba94 is the json file to reproduce this bug.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
empetcommented, Jan 31, 2020

Nice!!! Thanks!!

0reactions
etpinardcommented, Jan 31, 2020

No problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update yaxis range with updatemenus button - Plotly Python
These four + the visible field make 5 attributes that need to be updated on button click. I am trying to understand the...
Read more >
How to show only one trace when plotly updatemenus load on ...
While making the trace, you can set visible = "legendonly" . Then you can toggle the trace by clicking on the line in...
Read more >
Data_Products_Final_Project - RPubs
Lets set the theme for our plots to classic ... Installation paths not writeable, unable to update packages ## path: /usr/lib/R/library ...
Read more >
Storytelling using animation in Plotly | by Ankur Salunke
We would be using a dataset uploaded in Kaggle which gives us the details of all space launches (successful and unsuccessful both). Let's...
Read more >
NY DERBY | Expectations and reality | Kaggle
The data contains information about only 40 races with types WMC, SHP, WCL, SST and SOC, so it is useless to make any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found