Skip to content

BarChart brush selection changes while moving #1265

@mr23

Description

@mr23

This can be demonstrated using the Days by Fluctuation chart on https://dc-js.github.io/dc.js/. I was able to reproduce it more easily in Chrome but less so in Internet Explorer (11), but may have to do with IE11 updates were slower than in Chrome. Test was on a Win7 machine.

If you start with a selection of 3 bars
image

and then drag that selection left and right, at varying speeds, with some random pauses, the selection changes to fewer or more bars. I was not waiting for all charts to complete transition updates.
image
image
image
image

Normally when dragging, the cursor is a '+' shape (with arrow endpoints). At times when dragging, but without releasing mouse button, the cursor changes to a '-' shape (with arrow endpoints). It seems that dc is not maintaining the current operation state (dragging a selection) and is changing in/out of selection endpoint changes. Varying the 'x' starting position of the cursor has some effect on how quickly it can reproduce, doing the mouse-down closer to the selection endpoints causes it to reproduce sooner. I was not able to capture the cursor in a screen capture.

Expectation: Until mouse-up, dc.js should stay in drag ('+') state, and not alter the endpoints of the selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions