You can clone with
Original author: changos...@gmail.com (August 14, 2012 18:39:46)
allow for jquery-style 'method chaining' for those flot (& flot plugin) methods that return 'void', i.e. those methods that dont return a value (such as the 'getData()' method);
accomplish this goal by adding 'return this;' to end of each utility function.
this will return the plot object and allow for method chaining (which is a standard jquery construct).
this change would need to be applied to each existing 'void' method in both the base flot library & in each flot plugin. plugin developers would consequently be expected to follow the same coding guideline of returning the plot object from all general purpose 'void-returning' utility functions.
Original issue: http://code.google.com/p/flot/issues/detail?id=737
Add the plot function as a chainable property.
Resolves #734 and #816.