[jqplot-users]dynamically update data and not loose zoom

499 views
Skip to first unread message

Olga

unread,
Jul 27, 2011, 1:23:05 PM7/27/11
to jqplot-users
Hi!

Jqplot has an example where the data is dynamically updated (dynamicplot.html).

I think it would be really nice-to-have jqplot method like appendData(<array of data to be appended>). It would be useful for real-time dataseries.

It's not difficult to implement but there's a zooming problem. For example if we apply zoom in dynamicplot example, each time data is updated the chart is replotted and zoomed area is no longer zoomed.

It is also possible to implement but requires more deep knowledge of jqplot api, datastructures etc etc.

I'd like to ask if there is some work in this direction (give the possibility to easily update data and not to loose the zoom).
If there are no predictability for these features I will implement them. In this case i'd like to ask if I can submit the patches after the work done.

Sincerely,

--Olga


Chris Leonello

unread,
Jul 27, 2011, 10:07:12 PM7/27/11
to jqplot...@googlegroups.com
I don't have any plans in the near future to implement.  I would welcome a patch if you get this working.  Thanks!

-- 
Chris Leonello
http://www.jqplot.com
--
You received this message because you are subscribed to the Google Groups "jqplot-users" group.
To post to this group, send email to jqplot...@googlegroups.com.
To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jqplot-users?hl=en.

Klaas van Rijn

unread,
Feb 10, 2012, 4:27:39 PM2/10/12
to jqplot...@googlegroups.com
Made a work around to prevent resetting of the zoomed area. By checking the isZoomed variable  

if(Myplot.plugins.cursor._zoom.isZoomed == true) 

       Myplot.replot();

else

       Myplot.replot({resetAxes:true});

Reply all
Reply to author
Forward
0 new messages