Skip to content

A convenient way to get array of markers of a marker that are selected/highlighted #22

@angiehjort

Description

@angiehjort

Maybe there is one, i just don't know

so select/highlight encodings have a filter
that filter can be set by .markers or by .dimensions, right?
and if the filter is set by .dimensions then .markers is empty and i can't do [...markers]

so if i want to get an array of markers that are selected in a marker i would do something like

this.maker.dataArray.filter(d => this.marker.encoding.get("selected").has(d))

can there be an easier way? such as

this.marker.encoding.get("selected").dataArray

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