Skip to content

Feature request: Delete all traces #1838

Closed
@NathanJAdams

Description

@NathanJAdams

Situation: A variable length array of traces in a graph which all need to be removed and replaced with a new array of traces.

Current solution: Keeping track of the number of traces, then creating an array of indices every time the traces change and calling deleteTraces(graphDiv, indices) with it.

Ideal solution: What I'd love to be able to do is call deleteTraces(graphDiv) without an indices parameter which would delete all the traces. Currently it throws an error saying that the indices need to be an integer or an array of integers.

Would it be possible to add functionality to delete all the traces either like this or in some other way?

Side-note...great library btw!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions