How to update the graph using EasyPlot?

14 views
Skip to first unread message

esixtyone

unread,
Aug 27, 2010, 3:37:16 AM8/27/10
to plotkit
hi,

After a quick and dirty solution here...

I'm using this code:-

var plotter = EasyPlot("line", {yOriginIsZero: false, yAxis: [-125,
-25]}, $("graph"), ["values.txt"]);

to plot the values from a file... easy... all works....

Now, how do I update the graph from javascript...

e.g I want a button to Refresh the graph - nothing else will change
except the file content.

I took a look at the dynamic example, but got lost...

what is the equivilent of the

// update
layout.evaluate();
renderer.clear();
renderer.render();

code is that example???

Hoping for a call like plotter.Update();

thanks for your help.

Reply all
Reply to author
Forward
0 new messages