The RGraph objects now support .Set() method chaining

« 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 RGraph support on 4th February 2013

As of the next RGraph release (beta and stable) you will be able to chain Set() method calls. This means that you'll be able to do this:

var bar = new RGraph.Bar('cvs', [4,6,5,3,8,9])
     .Set('colors', ['red'])
     .Set('tooltips', ['Bob','Fred','Luis','Pete','Kevin','Rachel'])

It won't mean any speed increase - but it may suit your coding style better.

Add a reply

« Back to message list