RGraph Fuel chart Sample

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Juan Carlos on 1st December 2015
I have a page with a datagrid with fuel values, where you can select the fuel value and it is updating the Fuel chart properly but it is not cleaning previuous value.

Is there a property or a way to refresh the Fuel chart every time I select a different value not to have previous values and lines?
Posted by Richard on 1st December 2015
Hi,

I'm assuming that you're creating a new Fuel chart each time - you could try just updating the first Fuel instead and then redraw (assume that the myFuel variable is you Fuel chart object):

myFuel.value = newValue;
RGraph.redraw();






Richard

Add a reply




« Back to message list