gauravkumar13337 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Patch for Trendlines, dragable plot points, and log axes fixes. #110

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've added capability for automatic trendlines as well as dragging data
points and dynamically updating series data.  I've posted the patch and
code here for consideration.

Since I've been depending on Jonathan Leto's log axes mods, this code is
based off of his latest git repository, which is based off of rev131.  I've
diffed against that.  I know this may cause some confusion and difficulty
because it seems his mods haven't been merged into trunk yet.  If these
enhancements seem useful, I'll help however I can to merge everything together.

Examples and explanation of usage can be found on my blog here:

<a
href="http://www.hacknack.com/2009/02/adding-trendlines-and-dragable-to-flot/">h
ttp://www.hacknack.com/2009/02/adding-trendlines-and-dragable-to-flot/</a>

I also fixed the following issues I discovered with log axes in Jonathan's
Code (which is not yet in trunk):

* Dual axes weren't supported correctly.  Now checks which axes go with
which series when scaling axes.

* values returned on a plotclick/plothover event were log values.  Now
convert them back to "unscaled" values.

I hope this is useful to the flot community.

Original issue reported on code.google.com by chris.le...@gmail.com on 10 Feb 2009 at 5:04

Attachments:

GoogleCodeExporter commented 8 years ago
These features look great! I have applied your changes to my git repo. 

The patch above is "backwards" and modified a non-standard filename, so I have
attached another patch for those that like to use it.

You will also see that I merged in these changes with my screw-unit branch, 
this code
that you have added is just begging to be tested...

Original comment by jal...@gmail.com on 10 Feb 2009 at 9:15

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Jonathan for fixing the patch.  It was late when I diffed that file, I 
wasn't
paying attention.

Original comment by chris.le...@gmail.com on 10 Feb 2009 at 12:03

GoogleCodeExporter commented 8 years ago
Is there an updated version of this patch somewhere, or can I get the git 
version 
with the patch applied somewhere? I'm very interested in the trendlines and 
can't 
find those in the current git or 0.6 version.

Original comment by benv666@gmail.com on 26 Mar 2010 at 4:43

GoogleCodeExporter commented 8 years ago
I haven't made any updates to the patch since I posted it, maybe someone else 
has.  I
did develop an different open source jQuery plotting package that supports 
trendlines
called jqPlot.

Original comment by chris.le...@gmail.com on 29 Mar 2010 at 3:48

GoogleCodeExporter commented 8 years ago
I would really love to see the "draggable" feature of the patch added to the 
trunk.  Is there an update on the dragging data points?  That is very cool, and 
I like your demo on your blog, Chris.

Original comment by trav...@gmail.com on 16 Aug 2010 at 5:31

GoogleCodeExporter commented 8 years ago
I am not able to see the Example in the blog the link is broken. can anyone 
help me with the new link or any other example showing trendline features

Original comment by param...@gmail.com on 25 Jan 2012 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 9:47