Skip to content

Missing executeAPICommand in exports.Plots #5794

Closed
@cid8600

Description

@cid8600

Bug: I Upgraded Plotly to v2.2.0 and noticed the Plotly.Plots.executeAPICommand handler was no longer in the latest version.

As a User I'd like to see executeAPICommand returned to exports.Plots. This allows one to control multiple plots via a single Event.

File: dist/plotly.js
Line: 155701

Is:

exports.Plots = {
    resize: Plots.resize,
    graphJson: Plots.graphJson,
    sendDataToCloud: Plots.sendDataToCloud,
};

Fix:

exports.Plots = {
    resize: Plots.resize,
    graphJson: Plots.graphJson,
    sendDataToCloud: Plots.sendDataToCloud,
    executeAPICommand: Plots.executeAPICommand
};

Example: try to execute Plotly.Plots.executeAPICommand(gd, method, args) to control a sibling Plot and notice the function is missing from the exports.Plots Object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions