Skip to content

Scattergl tonext case #2284

Closed
Closed
@dy

Description

@dy

Followed by #2280 - this test case should work with scattergl:

var trace0 = {y: [1, 3, 5, 7], type: 'scattergl'};
var trace1 = {y: [1, 2, 3, 4], type: 'scattergl', line: {width: 0}, mode: 'lines'};
var trace2 = {y: [3, 4, 5, 6], type: 'scattergl', fill: 'tonexty', mode: 'none'};

Plotly.newPlot(gd, [trace0, trace1, trace2], {}, {scrollZoom: true})
.then(function() {
    return Plotly.restyle(gd, {y: [[null, null, null, null]]}, [1]);
})
.then(function() {
    return Plotly.restyle(gd, {y: [[1, 2, 3, 4]]}, [1]);
})
.then(function() {
    return Plotly.restyle(gd, {y: [[null, null, null, null]]}, [2]);
})
.then(function() {
    return Plotly.restyle(gd, {y: [[1, 2, 3, 4]]}, [2]);
})
.then(function() {
    return Plotly.restyle(gd, {y: [[null, null, null, null], [null, null, null, null]]}, [1, 2]);
})
.catch(fail)
.then(done);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions