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

autoResize duplicates legend #6

Closed
soichih opened this issue Jun 5, 2018 · 4 comments
Closed

autoResize duplicates legend #6

soichih opened this issue Jun 5, 2018 · 4 comments

Comments

@soichih
Copy link
Contributor

soichih commented Jun 5, 2018

If I set :autoResize="true", it ends up with having multiple listing of the legend everytime resize event fires.

Before resizing..

screenshot from 2018-06-05 10-49-25

After resizing..

screenshot from 2018-06-05 10-48-34

Also, autoResize doesn't fire when the plot is first displayed (as resize event hasn't fired yet). So I am calling plot() function when the plot is first displayed. It correctly resizes it, but it has the same side effect of duplicating the legend everytime I call plot().

@nmearl
Copy link

nmearl commented Jun 13, 2018

Seeing the same problem -- any solutions?

@wbenhallam
Copy link

same issue here...

mokkabonna pushed a commit that referenced this issue Jun 21, 2018
@mokkabonna
Copy link
Contributor

Fixed in 0.2.0

Problem was we called plot instead of ``newPlot`

https://plot.ly/javascript/plotlyjs-function-reference/#plotlyplot

First of all this is deprecated now and it also duplicated the data.

This was referenced Jun 21, 2018
@soichih
Copy link
Contributor Author

soichih commented Jun 21, 2018

It's working!

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

4 participants