Skip to content

scatter plot brushing - resizeFiltered #938

Closed
@Sumbera

Description

@Sumbera

when brushing, only resize (path) changes on symbols, this is not consistent with other graphs that usually grey-out filtered-out elements.

would be great to have a chance to set color of filtered/non-filtered symbols on scatter plot, for example by extending resizeFiltered function with fill attribute :

   function resizeFiltered(filter) {
    var symbols = _chart.selectAll('.chart-body path.symbol').each(function (d) {
        this.filtered = filter && filter.isFiltered(d.key);
    });

    dc.transition(symbols, _chart.transitionDuration()).attr('d', _symbol)
                                                       .attr('fill', _chart.getColor); // --add this 
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions