Share RGraph on Twitter Share RGraph on Google Plus Like RGraph on Facebook




« Back to message list

RGraph .Set() method chaining

 Please remember to link to the RGraph website and give your feedback here. Thanks! 

Mention this message on TwitterPerma-link to this message
Posted by RGraph support at 20:26 on 4th February 2013
Hi,

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'])
     .Draw();

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

Add a reply


Please answer this question Enter the largest number of seventeen, forty nine or 96:

« Back to message list

© Copyright RGraph licensing 2008-2013 All rights reserved. Privacy policy, Terms and conditions