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

scattergl: infinite loop when there's only 1 datapoint in trace #1173

Closed
jessetabak opened this issue Nov 21, 2016 · 1 comment
Closed

scattergl: infinite loop when there's only 1 datapoint in trace #1173

jessetabak opened this issue Nov 21, 2016 · 1 comment

Comments

@jessetabak
Copy link

If I create a scattergl plot with only 1 xy datapoint it will get stuck in an infinite loop.
It occurs in the allFastTypesLikely(a) function, the inc variable is always 0. In a normal scatter plot it works fine.

Since it will hang your browser I'll include the code here instead of a codepen:

index.html:

<div id="graph" style="width: 600px; height:800px"></div>
<script src="https://cdn.plot.ly/plotly-latest.js"></script>

main.js:

var div = document.getElementById('graph');

var layout = {
    title: 'My Graph'
};

var traces = [
{
    x: [1],
    y: [4],
    type: 'scattergl',
    mode: 'markers',                         
    marker: {size:8}
}];


Plotly.newPlot(
    div,  
    traces,                                     
    layout);
@etpinard
Copy link
Contributor

duplicate of #1164

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

2 participants