Skip to content

Bug: overlays not defined (1.39.3) #2855

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

Closed
rwinston opened this issue Jul 30, 2018 · 1 comment · Fixed by #2857
Closed

Bug: overlays not defined (1.39.3) #2855

rwinston opened this issue Jul 30, 2018 · 1 comment · Fixed by #2857
Labels
bug something broken

Comments

@rwinston
Copy link

rwinston commented Jul 30, 2018

Hi

I believe I have found a regression between 1.39.2 and 1.39.3. When running a plot with a secondary y-axis, makeSubplotData() throws an error as overlays is not defined for mainplotinfo

if(mainplot !== id && mainplotinfo) {
            // link 'main plot' ref in overlaying plotinfo
            plotinfo.mainplot = mainplot;
            plotinfo.mainplotinfo = mainplotinfo;
            // fill in list of overlaying subplots in 'main plot'
            mainplotinfo.overlays.push(plotinfo); // <- error here
        } 

I have a reproducible CodePen below -- if you change the plotly version to 1.39.2 it will work

https://codepen.io/roryw/pen/oMpNwX

I believe this is due to the cleanup in pull request #2831 (#2831), I am not overly familiar with the code - but it looks to me as if an initial assignment of overlays may now be missing in the cartesian object init code somwehere...

Cheers
-- Rory

@etpinard
Copy link
Contributor

Ha. Thanks for the report.

I didn't know you could overlay a yaxis over a yaxis2.

@etpinard etpinard added the bug something broken label Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants