Interactive Line chart and MVC


« 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 Tony Baker on 30th January 2013
Hi, I'm after an interactive line graph where users can drag and drop points to update value, just like this example:
www.rgraph.net/docs/adjusting-line.html
I'm wanting to use MVC, do you have an example of populating an interactive line chart from an MVC model and a controller responding to edits?
Regards,
Tony.
Posted by RGraph support on 31st January 2013
Hi,

No example of using MVC specifically no - but to add points you'd need to add it to the obj.original_data array and redraw the chart, eg:

// Push the value on to the end of the first dataset
obj.original_data[0].push(newvalue);
RGraph.Redraw();

This chart is adjustable:

dev.rgraph.net/demos/line15.html

Richard, RGraph Support

1 Year Premium Support now reduced to £299:
   www.rgraph.net/support

Add a reply

 




« Back to message list
RGraph on social media