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 use for showing charts on your website.

More »

 

Download
Get the latest version of RGraph (version 6.18, 1st June 2024) from the download page. You can read the changelog here. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

More »

 

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

More »

Download RGraph

Download the latest version of RGraph

RGraph is available as a free download - it's open source and is dual-licensed using the gplv2 licence, which allows you to use RGraph as much as you wish and a commercial license if you prefer not to use gpl software in your application or website. The download archive contains all of the demos (over 1000) (some of which are viewable online).

🢃 Download the latest version (6.18) 🢃

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.