Share RGraph:
Share RGraph on Twitter Share RGraph on Google Plus Share RGraph on Facebook Follow RGraph on LinkedIn

Read more about the RGraph High Priority support service...

« Back to message list

RGraph .Set() method chaining

Posted by RGraph support 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 Chris' name is?

Replies are closed


« Back to message list

© Copyright 2014 Richard Heyes All rights reserved.