blackhydrogen / noop-sewi

Sana Encounter Web Interface (SEWI)
0 stars 1 forks source link

Selecting a point in graph observation should depend on both x and y positions of the cursor. #180

Open weitsang opened 9 years ago

weitsang commented 9 years ago

Currently, it depends only on the x-coordinate of the cursor, making it difficult to select a peak.

BharathParameswaran commented 9 years ago

The point highlighting (the pink dot on hover) is supported by Dygraph and on hover it allows modification only to the point that is being hovered over ( see drawHighlightPointCallback under http://dygraphs.com/options.html#Data%20Line%20display). So when the user moves his mouse, it just takes the x value and highlights a point 'closest' to that x value and doesn't care about the y value. Anyway, for selecting peaks the easiest way is to zoom into the y axis :)