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 »

Download RGraph

The current RGraph changelog and older release notes

The changelog is a summary of changes to RGraph that may interest you or that you should be aware of. You can also find older release notes for past releases here.

Backwards compatibility breaks

Occasionally backwards compatibility has to break - you can read about those breaks here.

Download minified versions of RGraph

You can download pre-minified versions of the libraries (which have extraneous whitespace and comments removed).

Download older versions of RGraph

If you need an older version of RGraph you can find a list going back to version 4.59 (December 2016) below.

Find RGraph on GitHub

RGraph is now available through GitHub. With the RGraph GitHub repository you can see ongoing and past changes.

View the source code of the RGraph files

If you want to view the original library files and see the source code then you can use these links. As new versions are released then these will of course be the latest versions. Note that the cdnJS links take a day or so to update after I've released a new version.

SVG common libraries

SVG libraries

Canvas common libraries

Canvas libraries

Canvas drawing API libraries

Get the RGraph libraries on cdnjs.com

If you wish to use a CDN (Content Delivery Network) for the RGraph libraries, they're available via cdnjs.com. You can view the libraries that are available at the link below:

Download PhantomJS - the command-line browser

If you want to create charts or simply render web pages from command-line scripts then PhantomJS is for you.

The PhantomJS project appears to have stalled - but using the download archives that I've mirrored here you can still happily use it to create charts from command-line scripts etc.

Here is an example page that you could put on your website that creates a Line chart. You can request and download this page with PhantomJS which can then save the image of the page to your local machine (or wherever you're running PhantomJS from).

It doesn't have to be the whole page - if you want, PhantomJS can save an image of just a portion of the page - in this case just the top left using a width and height that matches the size of the chart.

Thus you then have an image of just the chart that you can use wherever you wish. You could even rig it so that neither svg nor canvas are used on your website at all and you just use PhantomJS behind the scenes so that you only use images on your website.

Here's some example PhantomJS code that I've previously used to get a picture of the above test page saved locally:

    var page = require('webpage').create();
    
    page.open('https://www.rgraph.net/phantomjs.html', function()
    {
        page.viewportSize = {
            width: 850,
            height: 300
        };
        
        page.render('rgraph-canvas.png');
        
        phantom.exit(0);
    });
    

There's also a PhantomJS HOWTO guide that applies to both the svg and canvas libraries.