Skip to content

better scatter plot indexing? #621

Open
@gordonwoodhull

Description

@gordonwoodhull

The shrinking of dots when the value goes to zero implemented for #491 points out a possible design flaw in the way the scatterplot is currently implemented.

Indexing by the position is intuitive, and helps slightly with rectangular brushing, but it doesn't allow points to disappear from the set except by the value going to zero. And they must maintain the same order because there is no key function specified for d3.data. Implicitly it gets keyed by the order of the points supplied.

Going forward toward 3.0, I want to consider whether the indexing was better for bubble plots (where you usually explicitly index by order and supply X and Y accessors), or whether a dataKey accessor should be added to the scatter plot interface.

In terms of efficiency, probably neither is very good for crossfilter. There isn't any key you could use that would allow a rectangular range to map to a range of records.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions