We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this code that fails to relayout the width and height when an annotation is present:
http://codepen.io/anon/pen/RGxagY?editors=102
<head> <script src="https://cdn.plot.ly/plotly-1.0.0.min.js"></script> </head> <body> <div id="graph"></div> </body> <script> var x = document.createElement('div') var layout = {annotations: [ {text:'My Annotation', arrowcolor: 'orange', font:{color:'orange'}, x:2, y: 2 } ] } Plotly.newPlot(x, [{x: [1,2,3],y: [1,2,3],type: 'scatter'}], layout) document.body.appendChild(x) layout.width = 100 layout.height = 100 Plotly.relayout(x,layout) </script>
The text was updated successfully, but these errors were encountered:
Tested on v1.17.1
Sorry, something went wrong.
Thanks for the report
I believe this problem is related to #537 - but this requires confirmation.
In the meantime, here's a workaround http://codepen.io/etpinard/pen/kkvEpJ
Seems to be working now fine in 1.19.2
1.19.2
No branches or pull requests
I have this code that fails to relayout the width and height when an annotation is present:
http://codepen.io/anon/pen/RGxagY?editors=102
The text was updated successfully, but these errors were encountered: