Skip to content

Negative y value for legend causes error and invisible legend #384

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
ChristinaTech opened this issue Apr 1, 2016 · 1 comment · Fixed by #417
Closed

Negative y value for legend causes error and invisible legend #384

ChristinaTech opened this issue Apr 1, 2016 · 1 comment · Fixed by #417
Labels
bug something broken

Comments

@ChristinaTech
Copy link

If you take the code given in one of the examples (https://plot.ly/javascript/legend/#positioning-the-legend-outside-the-plot) and make the y value for the legend negative, the legend will disappear and errors will appear in the console. This makes it impossible to position the legend below the graph.

Here is a codepen with the stated modification already made:
http://codepen.io/anon/pen/eZGWXo

@mdtusz mdtusz added the bug something broken label Apr 1, 2016
@mdtusz
Copy link
Contributor

mdtusz commented Apr 1, 2016

Confirmed as a bug. Thanks for opening the issue.

n-riesco added a commit to n-riesco/plotly.js that referenced this issue Apr 9, 2016
* Ensure that when the margins are expended to allocate the legend,
  there is enough space to clear the layout margins.

Fixes plotly#384
n-riesco added a commit to n-riesco/plotly.js that referenced this issue Apr 11, 2016
* Ensure that when the margins are expended to allocate the legend,
  there is enough space to clear the layout margins.

Fixes plotly#384
n-riesco added a commit to n-riesco/plotly.js that referenced this issue Apr 11, 2016
* Ensure that when the margins are expended to allocate the legend,
  there is enough space to clear the layout margins.

Fixes plotly#384
n-riesco added a commit to n-riesco/plotly.js that referenced this issue Apr 11, 2016
mdtusz added a commit that referenced this issue Apr 18, 2016
…strict-margins

Fix issue #384 (invisible legends when y is negative)
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