dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Crosshair plugin - out of graph bounds selection filter

Open n-gist opened this issue 2 years ago • 0 comments

When the graph is zoomed in, crosshair can select points out of view area, drawing lines off graph. Below is example where the area on the left is caused by axisLabelWidth, so it is inside crosshair drawing canvas.

chBounds

The same happens on the right side when using rightGap. Filtered by checking selectedPoint.x to be in [0,1]

n-gist avatar May 16 '23 09:05 n-gist