danvk / dygraphs

Interactive visualizations of time series using JavaScript and the HTML canvas tag
http://dygraphs.com
Other
3.17k stars 606 forks source link

Hovering over y-axis labels selects points #543

Open mg1075 opened 9 years ago

mg1075 commented 9 years ago

I have been using the Range Selector and the custom plotter described here. http://blog.dygraphs.com/2012/08/introducing-custom-plotters.html

While doing so, my hope was to be able to return - accurately - the DATE values for the min and max of the current zoom. However, the min and max values do not always match what is visible on the chart; sometimes they are a day off.

But to make the issue trickier, hovering outside of the plot area is showing values in the legend.

This behavior can be seen in the plotters page of the dygraphs website. http://dygraphs.com/tests/plotters.html

Here I have just started to put my cursor in the dygraphs canvas, and the chart start showing a value, even though my mouse has only entered the area outside the plot area, not within it. Notice how the date says 2006/10/02 image

danvk commented 9 years ago

This isn't specifically related to custom plotters. It does feel strange that hovering over the y-axis selects the left-most point.