boundary / firespray

Blazingly fast streaming charts
MIT License
106 stars 14 forks source link

odd behavior for bar hover in streaming data example #8

Open mg1075 opened 9 years ago

mg1075 commented 9 years ago

When playing with the streaming data demo, I have noticed an odd behavior when hovering over the data bar columns. The odd behavior only happens when I hover over part of the bar itself, not when I hover over the empty space above the bar.

Once I hover over part of the bar, the bar I hovered becomes attached to my mouse cursor if I stay inside the chart. As the data keeps streaming in, the bar I hovered is glued to the cursor, but not if I move the cursor around quickly enough.

In the below screenshot, the first arrow points to the column I hovered, and the second arrow points to the same column now stuck to the cursor.

image

Example plnkr: http://plnkr.co/edit/ZMsfV0NrCHazPWkdJr2C?p=preview

wcainboundary commented 9 years ago

Reproduced this behavior. To paraphrase (to make sure I understand)... In streaming, when you move the mouse, the correct bars (y values) initially appear in the highlight. However, when you stop moving the mouse, the highlight shows on the currently selected time (x value), which correctly changes as data streams across, but the bars (y values) for that highlight are from the last place you moved the mouse to, not for the actual/current data point.