Skip to content

Clear/Update Annotations with options/conditions #1016

@ThinkSalat

Description

@ThinkSalat

I have a chart with multiple types of annotations. Is there a way I can signify, either through a class or id, which annotations to clear?

Or even better, could we get an "Update Annotation" method that takes a callback that receives an array of the current annotations and then returns a new array of annotations?

Something like this:

ApexCharts.updateAnnotations( currentAnnotations => {
    const updatedAnnotations = currentAnnotations.filter( ({ x }) => x < 5 )
    return updatedAnnotations
})

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