About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 15 years old) and has a wealth of features making it an ideal choice to show charts on your website.

More »

 

License
RGraph can be used for free under the GPL or if that doesn't suit your situation there's an inexpensive (£99) commercial license available.

More »

 

Download
Get the latest version of RGraph (version 6.17) from the download page. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

More »

Improving the performance of your charts

Although performance is great, (certainly compared to server-based libraries), you may still want to tune RGraph more.

The biggest thing you can do is use http compression, which reduces the initial download time of the libraries, but there are quite a few things that you can do:

A reasonable performance strategy

Though there's a lot you can do to increase performance, a few of the points here will be enough for most websites:

The number one thing you should do is compress your libraries. This has many benefits and easily provides the most gain, effectively for free.

Secondly, use the minified libraries. Because you can download the minified libraries here, you might as well use them.

Then we have pre-emptive caching. Because most websites won't show charts on the front page or will have a login page before any charts are shown, this effectively eliminates the library files download.

And lastly, caching should be done as a matter of course. There's no reason to keep downloading the same library so even caching for only 30 minutes (or the duration of an average visit to your website) will produce results.

General website performance tools

If you aim to improve your website's performance as a whole then you may be interested in these tools:

Note about performance and HTTP/2

From 2016 http/2 will become more widespread - with many people planning to make the switch to it and this includes many hosting providers.

Patterns such as "domain sharding" (using multiple hostnames) and combining your javascript libraries become anti-patterns and are less useful (and in some cases actually hurt performance).

If you're planning to switch to http/2, or already have, then you should compare the advantages of some of these techniques versus not using them and decide what, if any, the benefit is.

Again, in some cases, the use of some of these techniques may not help at all and may even hurt performance.