Skip to content

Retrieve layer selection from inside layer #91

@samselikoff

Description

@samselikoff

Is it possible to retrieve a layer's selection from inside the layer? Right now I generally see the layer's selections stored in a hash

chart.areas =  {
  lines: chart.base.append('g').attr('class', 'lines');
}

...

chart.layer('lines', chart.areas.lines, {
  ...
  // refer to chart.areas.lines here
}

which works, but it would be nice to be able to refer to the selection in case I didn't do this, e.g.

chart.layer('lines', chart.base.append('g'), {
  ...
  // how can I get the selection?
}

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