Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Added selection resizing and dragging to flot.selection #541
Original author: mikejb...@gmail.com (February 15, 2011 14:05:13)
Attached is a diff of changes that add optional resizing and dragging capabilities to flot.selection. The default is to use the old behavior of always creating a new selection but setting options.selection.resize to true when creating a new plot will enable the new functionality. The diff is based on jquery.flot.selection.js in the 0.6 release.
In this mode the selection can be resized by dragging on the edges of the current selection, moved by dragging the selection, and will center the selection on the current pointer location on a mouse click. The mouse pointers will change when hovering over the selection and it's edges to give visual indicators for resize and dragging.
Original issue: http://code.google.com/p/flot/issues/detail?id=462